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_9cc235f7641c_3 | b4ef31d80e052b11 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ContractFeatureTest.lean | ContractFeatureTest | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 5 | 1 | [
{
"theorem_name": "scalarEventSmoke_compile_preserves_semantics_with_scalar_events",
"depth": 1,
"n_commands": 0,
"n_lines": 21,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n exact Contract.compile_preserves_semantics_with_scalar_events\n (model ... | [
{
"name": "scalarEventSmoke_helperFree",
"text": "private theorem scalarEventSmoke_helperFree :\n ∀ fn, fn ∈ selectorDispatchedFunctions scalarEventSmokeSpec →\n StmtListHelperFreeNonEventStepInterface\n (SourceSemantics.effectiveFields scalarEventSmokeSpec)\n (fn.params.map (·.name)) ... | [
{
"name": "scalarEventSmoke_compile_preserves_semantics_with_scalar_events",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 36,
"n_chars": 1655,
"n_subproofs": 0,
"n_tactics": 21,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural"... | 3 | import Compiler.Proofs.IRGeneration.Contract
import Compiler.Proofs.MappingSlot
namespace Compiler.Proofs.IRGeneration.ContractFeatureTest
open Compiler
open Compiler.CompilationModel
open Compiler.Proofs.IRGeneration
open Compiler.Yul
private def literalMappingWriteFunction : FunctionSpec :=
{ name := "setFive"
... | import Compiler.Proofs.IRGeneration.Contract
import Compiler.Proofs.MappingSlot
namespace Compiler.Proofs.IRGeneration.ContractFeatureTest
open Compiler
open Compiler.CompilationModel
open Compiler.Proofs.IRGeneration
open Compiler.Yul
private def literalMappingWriteFunction : FunctionSpec :=
{ name := "setFive"
... | @@ -1355,6 +1355,18 @@
simp [scalarEventSmokeSpec] at hctor
functions := scalarEventSmoke_supported_function }
+private theorem scalarEventSmoke_helperFree :
+ ∀ fn, fn ∈ selectorDispatchedFunctions scalarEventSmokeSpec →
+ StmtListHelperFreeNonEventStepInterface
+ (SourceSemantics.effectiv... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_0 | afef02cb2d2d1db1 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "supportedScalarHeadSize_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 22,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction params with\n | nil =>\n simp\n | cons param rest ih =>\n have hparam : SupportedExternal... | [
{
"name": "foldl_add_eq",
"text": "private theorem foldl_add_eq (xs : List Nat) (init : Nat) :\n xs.foldl (· + ·) init = xs.foldl (· + ·) 0 + init := by\n induction xs generalizing init with\n | nil =>\n simp\n | cons x rest ih =>\n calc\n (x :: rest).foldl (· + ·) init\n =... | [
{
"name": "supportedScalarHeadSize_eq",
"fan_in": 2,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 27,
"n_chars": 1229,
"n_subproofs": 2,
"n_tactics": 22,
"cyclomatic": 2,
"n_automation": 6,
"n_rewrites": 2,
"n_structural": 4,
"automation_only": false,
... | 2 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -26,6 +26,21 @@
change n % Verity.Core.UINT256_MODULUS = n % Compiler.Constants.evmModulus
rfl
+private theorem foldl_add_eq (xs : List Nat) (init : Nat) :
+ xs.foldl (· + ·) init = xs.foldl (· + ·) 0 + init := by
+ induction xs generalizing init with
+ | nil =>
+ simp
+ | cons x rest ih =>
+ ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_1 | c400e763ea416c42 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 6 | [
{
"theorem_name": "exec_genScalarLoad_supported_then_word_passthrough",
"depth": 1,
"n_commands": 0,
"n_lines": 17,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rcases hpassthrough with rfl | rfl | rfl <;> (\n have hstmt :\n execIRStmt (r... | [
{
"name": "execIRStmts_cons_of_execIRStmt_continue_extraFuel",
"text": "private theorem execIRStmts_cons_of_execIRStmt_continue_extraFuel\n (extraFuel : Nat)\n (state next : IRState) (stmt : YulStmt) (rest : List YulStmt)\n (hstmt : execIRStmt (rest.length + extraFuel + 1) state stmt = .continue ne... | [
{
"name": "exec_genScalarLoad_supported_then_word_passthrough",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 3,
"n_lines": 27,
"n_chars": 1782,
"n_subproofs": 2,
"n_tactics": 18,
"cyclomatic": 4,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 2,
"aut... | 1 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -33,6 +33,14 @@
have hlt : ¬ 4 + 32 * idx < 4 := by omega
simp [Compiler.Proofs.YulGeneration.calldataloadWord, hlt]
+private theorem execIRStmts_cons_of_execIRStmt_continue_extraFuel
+ (extraFuel : Nat)
+ (state next : IRState) (stmt : YulStmt) (rest : List YulStmt)
+ (hstmt : execIRStmt (rest.leng... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_2 | 294896baf351a8df | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 6 | [
{
"theorem_name": "exec_genScalarLoad_supported_then_word_passthrough",
"depth": 1,
"n_commands": 0,
"n_lines": 17,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rcases hpassthrough with rfl | rfl | rfl <;> (\n have hstmt :\n execIRStmt (r... | [
{
"name": "execIRStmts_cons_of_execIRStmt_continue_extraFuel",
"text": "private theorem execIRStmts_cons_of_execIRStmt_continue_extraFuel\n (extraFuel : Nat)\n (state next : IRState) (stmt : YulStmt) (rest : List YulStmt)\n (hstmt : execIRStmt (rest.length + extraFuel + 1) state stmt = .continue ne... | [
{
"name": "exec_genScalarLoad_supported_then_uint8",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 27,
"n_chars": 1709,
"n_subproofs": 2,
"n_tactics": 18,
"cyclomatic": 1,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 0,
"automation_onl... | 1 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -33,6 +33,14 @@
have hlt : ¬ 4 + 32 * idx < 4 := by omega
simp [Compiler.Proofs.YulGeneration.calldataloadWord, hlt]
+private theorem execIRStmts_cons_of_execIRStmt_continue_extraFuel
+ (extraFuel : Nat)
+ (state next : IRState) (stmt : YulStmt) (rest : List YulStmt)
+ (hstmt : execIRStmt (rest.leng... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_3 | 756c0157c5118a59 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 6 | [
{
"theorem_name": "exec_genScalarLoad_supported_then_word_passthrough",
"depth": 1,
"n_commands": 0,
"n_lines": 17,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rcases hpassthrough with rfl | rfl | rfl <;> (\n have hstmt :\n execIRStmt (r... | [
{
"name": "execIRStmts_cons_of_execIRStmt_continue_extraFuel",
"text": "private theorem execIRStmts_cons_of_execIRStmt_continue_extraFuel\n (extraFuel : Nat)\n (state next : IRState) (stmt : YulStmt) (rest : List YulStmt)\n (hstmt : execIRStmt (rest.length + extraFuel + 1) state stmt = .continue ne... | [
{
"name": "exec_genScalarLoad_supported_then_uint16",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 26,
"n_chars": 1687,
"n_subproofs": 2,
"n_tactics": 17,
"cyclomatic": 1,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 0,
"automation_on... | 1 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -33,6 +33,14 @@
have hlt : ¬ 4 + 32 * idx < 4 := by omega
simp [Compiler.Proofs.YulGeneration.calldataloadWord, hlt]
+private theorem execIRStmts_cons_of_execIRStmt_continue_extraFuel
+ (extraFuel : Nat)
+ (state next : IRState) (stmt : YulStmt) (rest : List YulStmt)
+ (hstmt : execIRStmt (rest.leng... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_4 | e1520320f3aa09c5 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 6 | [
{
"theorem_name": "exec_genScalarLoad_supported_then_word_passthrough",
"depth": 1,
"n_commands": 0,
"n_lines": 17,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rcases hpassthrough with rfl | rfl | rfl <;> (\n have hstmt :\n execIRStmt (r... | [
{
"name": "execIRStmts_cons_of_execIRStmt_continue_extraFuel",
"text": "private theorem execIRStmts_cons_of_execIRStmt_continue_extraFuel\n (extraFuel : Nat)\n (state next : IRState) (stmt : YulStmt) (rest : List YulStmt)\n (hstmt : execIRStmt (rest.length + extraFuel + 1) state stmt = .continue ne... | [
{
"name": "exec_genScalarLoad_supported_then_address",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 33,
"n_chars": 1989,
"n_subproofs": 3,
"n_tactics": 24,
"cyclomatic": 1,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 1,
"automation_o... | 1 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -33,6 +33,14 @@
have hlt : ¬ 4 + 32 * idx < 4 := by omega
simp [Compiler.Proofs.YulGeneration.calldataloadWord, hlt]
+private theorem execIRStmts_cons_of_execIRStmt_continue_extraFuel
+ (extraFuel : Nat)
+ (state next : IRState) (stmt : YulStmt) (rest : List YulStmt)
+ (hstmt : execIRStmt (rest.leng... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_5 | c5bc15e1c2d65fcf | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 6 | [
{
"theorem_name": "exec_genScalarLoad_supported_then_word_passthrough",
"depth": 1,
"n_commands": 0,
"n_lines": 17,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rcases hpassthrough with rfl | rfl | rfl <;> (\n have hstmt :\n execIRStmt (r... | [
{
"name": "execIRStmts_cons_of_execIRStmt_continue_extraFuel",
"text": "private theorem execIRStmts_cons_of_execIRStmt_continue_extraFuel\n (extraFuel : Nat)\n (state next : IRState) (stmt : YulStmt) (rest : List YulStmt)\n (hstmt : execIRStmt (rest.length + extraFuel + 1) state stmt = .continue ne... | [
{
"name": "exec_genScalarLoad_supported_then_bool",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 27,
"n_chars": 1621,
"n_subproofs": 1,
"n_tactics": 19,
"cyclomatic": 3,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 0,
"automation_only... | 1 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -33,6 +33,14 @@
have hlt : ¬ 4 + 32 * idx < 4 := by omega
simp [Compiler.Proofs.YulGeneration.calldataloadWord, hlt]
+private theorem execIRStmts_cons_of_execIRStmt_continue_extraFuel
+ (extraFuel : Nat)
+ (state next : IRState) (stmt : YulStmt) (rest : List YulStmt)
+ (hstmt : execIRStmt (rest.leng... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_6 | 4120dfdc271d3ca9 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "exec_genScalarLoad_supported_then",
"depth": 1,
"n_commands": 0,
"n_lines": 12,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rcases supportedExternalParamType_cases hsupported with rfl | rfl | rfl | rfl | rfl | rfl | rfl\n · exa... | [
{
"name": "supportedExternalParamType_cases",
"text": "private theorem supportedExternalParamType_cases\n {ty : ParamType} (hsupported : SupportedExternalParamType ty) :\n ty = .uint256 ∨ ty = .int256 ∨ ty = .uint8 ∨ ty = .uint16 ∨\n ty = .address ∨ ty = .bytes32 ∨ ty = .bool := by\n cases ty <;... | [
{
"name": "exec_genScalarLoad_supported_then",
"fan_in": 1,
"n_deps_direct": 6,
"n_deps_transitive": 9,
"n_lines": 22,
"n_chars": 1549,
"n_subproofs": 0,
"n_tactics": 12,
"cyclomatic": 2,
"n_automation": 10,
"n_rewrites": 0,
"n_structural": 8,
"automation_only": f... | 7 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -33,6 +33,12 @@
have hlt : ¬ 4 + 32 * idx < 4 := by omega
simp [Compiler.Proofs.YulGeneration.calldataloadWord, hlt]
+private theorem supportedExternalParamType_cases
+ {ty : ParamType} (hsupported : SupportedExternalParamType ty) :
+ ty = .uint256 ∨ ty = .int256 ∨ ty = .uint8 ∨ ty = .uint16 ∨
+ t... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_7 | ed975bcccf4b5ddf | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "bindSupportedParams_names_nodup",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [bindSupportedParams_names hbind]\n exact hparams",
"n_chars": 58,
"n_subproofs": 0,
"n_tac... | [
{
"name": "bindSupportedParams_names",
"text": "theorem bindSupportedParams_names\n {params : List Param} {args : List Nat} {bindings : List (String × Nat)}\n (hbind : SourceSemantics.bindSupportedParams params args = some bindings) :\n bindings.map Prod.fst = params.map Param.name := by\n inducti... | [
{
"name": "bindSupportedParams_names_nodup",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 340,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,
... | 1 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -33,11 +33,36 @@
have hlt : ¬ 4 + 32 * idx < 4 := by omega
simp [Compiler.Proofs.YulGeneration.calldataloadWord, hlt]
+theorem bindSupportedParams_names
+ {params : List Param} {args : List Nat} {bindings : List (String × Nat)}
+ (hbind : SourceSemantics.bindSupportedParams params args = some bindings)... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_8 | 3b8c8541dd939f80 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "exec_genParamLoadBodyFrom_supported_then",
"depth": 1,
"n_commands": 0,
"n_lines": 193,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction params generalizing state idx bindings rest headSize baseOffset with\n | nil =>\n ... | [
{
"name": "drop_succ_eq_of_drop_eq_cons",
"text": "private theorem drop_succ_eq_of_drop_eq_cons\n {xs : List Nat} {idx arg : Nat} {rest : List Nat}\n (hdrop : xs.drop idx = arg :: rest) :\n xs.drop (idx + 1) = rest := by\n calc\n xs.drop (idx + 1) = (xs.drop idx).drop 1 := by\n simpa [Nat.... | [
{
"name": "exec_genParamLoadBodyFrom_supported_then",
"fan_in": 2,
"n_deps_direct": 4,
"n_deps_transitive": 12,
"n_lines": 207,
"n_chars": 13561,
"n_subproofs": 19,
"n_tactics": 195,
"cyclomatic": 10,
"n_automation": 50,
"n_rewrites": 1,
"n_structural": 10,
"autom... | 10 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -42,6 +42,16 @@
(List.getElem?_drop (xs := xs) (i := idx) (j := 0)).symm
simp [List.getD, hlookup]
+private theorem drop_succ_eq_of_drop_eq_cons
+ {xs : List Nat} {idx arg : Nat} {rest : List Nat}
+ (hdrop : xs.drop idx = arg :: rest) :
+ xs.drop (idx + 1) = rest := by
+ calc
+ xs.drop (idx ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_9 | b853adfa0b9723d5 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "exec_genParamLoads_supported",
"depth": 1,
"n_commands": 0,
"n_lines": 29,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hlen : params.length ≤ state.calldata.length := bindSupportedParams_some_length hbind\n let body :=\n ... | [
{
"name": "bindSupportedParams_some_length",
"text": "theorem bindSupportedParams_some_length\n {params : List Param} {args : List Nat} {bindings : List (String × Nat)}\n (hbind : SourceSemantics.bindSupportedParams params args = some bindings) :\n params.length ≤ args.length := by\n induction par... | [
{
"name": "exec_genParamLoads_supported",
"fan_in": 0,
"n_deps_direct": 5,
"n_deps_transitive": 19,
"n_lines": 37,
"n_chars": 2062,
"n_subproofs": 5,
"n_tactics": 29,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,... | 17 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -41,6 +41,27 @@
rw [ih x]
_ = (x :: rest).foldl (· + ·) 0 + init := by simp [List.foldl]
+theorem bindSupportedParams_some_length
+ {params : List Param} {args : List Nat} {bindings : List (String × Nat)}
+ (hbind : SourceSemantics.bindSupportedParams params args = some bindings) :
+ ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_10 | a2e0ca9af22aa6bd | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "exec_genParamLoads_supported",
"depth": 1,
"n_commands": 0,
"n_lines": 29,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hlen : params.length ≤ state.calldata.length := bindSupportedParams_some_length hbind\n let body :=\n ... | [
{
"name": "bindSupportedParams_some_length",
"text": "theorem bindSupportedParams_some_length\n {params : List Param} {args : List Nat} {bindings : List (String × Nat)}\n (hbind : SourceSemantics.bindSupportedParams params args = some bindings) :\n params.length ≤ args.length := by\n induction par... | [
{
"name": "exec_genParamLoads_supported_then_extraFuel",
"fan_in": 1,
"n_deps_direct": 5,
"n_deps_transitive": 18,
"n_lines": 58,
"n_chars": 3322,
"n_subproofs": 8,
"n_tactics": 48,
"cyclomatic": 1,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 1,
"automatio... | 16 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -41,6 +41,27 @@
rw [ih x]
_ = (x :: rest).foldl (· + ·) 0 + init := by simp [List.foldl]
+theorem bindSupportedParams_some_length
+ {params : List Param} {args : List Nat} {bindings : List (String × Nat)}
+ (hbind : SourceSemantics.bindSupportedParams params args = some bindings) :
+ ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_dd0cd0f34080_11 | e6485c10b88c86ff | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/ParamLoading.lean | ParamLoading | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "exec_genParamLoads_supported",
"depth": 1,
"n_commands": 0,
"n_lines": 29,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hlen : params.length ≤ state.calldata.length := bindSupportedParams_some_length hbind\n let body :=\n ... | [
{
"name": "bindSupportedParams_some_length",
"text": "theorem bindSupportedParams_some_length\n {params : List Param} {args : List Nat} {bindings : List (String × Nat)}\n (hbind : SourceSemantics.bindSupportedParams params args = some bindings) :\n params.length ≤ args.length := by\n induction par... | [
{
"name": "exec_genParamLoads_supported_then",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 19,
"n_lines": 13,
"n_chars": 787,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": tru... | 17 | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | import Compiler.CompilationModel.ParamLoading
import Compiler.Proofs.IRGeneration.SourceSemantics
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.CompilationModel
open Compiler.Yul
namespace ParamLoading
def applyBin... | @@ -41,6 +41,27 @@
rw [ih x]
_ = (x :: rest).foldl (· + ·) 0 + init := by simp [List.foldl]
+theorem bindSupportedParams_some_length
+ {params : List Param} {args : List Nat} {bindings : List (String × Nat)}
+ (hbind : SourceSemantics.bindSupportedParams params args = some bindings) :
+ ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_0 | 763eb83f72dccf2b | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 1 | [
{
"theorem_name": "guarded_reverts",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n ⟨\"Caller is not the owner\", by simp [Verity.bind, Contract.run, onlyOwner_reverts s h]⟩",
"n_chars": 94,
"n_subproof... | [
{
"name": "onlyOwner_reverts",
"text": "private theorem onlyOwner_reverts (s : ContractState) (h : s.sender ≠ s.storageAddr 0) :\n onlyOwner s = ContractResult.revert \"Caller is not the owner\" s := by\n simp [onlyOwner, isOwner, owner, msgSender, getStorageAddr,\n Verity.require, Verity.pure, Verit... | [
{
"name": "guarded_reverts",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 328,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_nesting"... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,16 @@
/-! ## Owner Guard -/
+private theorem onlyOwner_reverts (s : ContractState) (h : s.sender ≠ s.storageAddr 0) :
+ onlyOwner s = ContractResult.revert "Caller is not the owner" s := by
+ simp [onlyOwner, isOwner, owner, msgSender, getStorageAddr,
+ Verity.require, Verity.pure, Verity.bind... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_1 | 141e4ccac50b0ba2 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "getCount_meets_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n verity_spec getCount_spec using (getCount_run s)",
"n_chars": 54,
"n_subproofs": 0,
"n_tactics": 2,
"cy... | [
{
"name": "getCount_run",
"text": "private theorem getCount_run (s : ContractState) :\n (getCount).run s = ContractResult.success (s.storage 1) s := by\n verity_unfold getCount\n simp [count]\n\n",
"fan_in": 3,
"n_lines": 6,
"n_chars": 158,
"n_subproofs": 0,
"n_tactics": 3,
"cyclo... | [
{
"name": "getCount_meets_spec",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 172,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"max_nes... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,9 +23,15 @@
/-! ## Owner Guard -/
+private theorem getCount_run (s : ContractState) :
+ (getCount).run s = ContractResult.success (s.storage 1) s := by
+ verity_unfold getCount
+ simp [count]
+
theorem getCount_meets_spec (s : ContractState) :
let result := ((getCount).run s).fst
- getCount_spec res... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_2 | 469736a0902be479 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "getCount_meets_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n verity_spec getCount_spec using (getCount_run s)",
"n_chars": 54,
"n_subproofs": 0,
"n_tactics": 2,
"cy... | [
{
"name": "getCount_run",
"text": "private theorem getCount_run (s : ContractState) :\n (getCount).run s = ContractResult.success (s.storage 1) s := by\n verity_unfold getCount\n simp [count]\n\n",
"fan_in": 3,
"n_lines": 6,
"n_chars": 158,
"n_subproofs": 0,
"n_tactics": 3,
"cyclo... | [
{
"name": "getCount_returns_count",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 128,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
"max_... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,8 +23,15 @@
/-! ## Owner Guard -/
+private theorem getCount_run (s : ContractState) :
+ (getCount).run s = ContractResult.success (s.storage 1) s := by
+ verity_unfold getCount
+ simp [count]
+
theorem getCount_returns_count (s : ContractState) :
- ((getCount).run s).fst = s.storage 1 := sorry
+ ((get... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_3 | 3727edbbe07fef4a | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "getCount_meets_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n verity_spec getCount_spec using (getCount_run s)",
"n_chars": 54,
"n_subproofs": 0,
"n_tactics": 2,
"cy... | [
{
"name": "getCount_run",
"text": "private theorem getCount_run (s : ContractState) :\n (getCount).run s = ContractResult.success (s.storage 1) s := by\n verity_unfold getCount\n simp [count]\n\n",
"fan_in": 3,
"n_lines": 6,
"n_chars": 158,
"n_subproofs": 0,
"n_tactics": 3,
"cyclo... | [
{
"name": "getCount_preserves_state",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 120,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
"ma... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,8 +23,15 @@
/-! ## Owner Guard -/
+private theorem getCount_run (s : ContractState) :
+ (getCount).run s = ContractResult.success (s.storage 1) s := by
+ verity_unfold getCount
+ simp [count]
+
theorem getCount_preserves_state (s : ContractState) :
- ((getCount).run s).snd = s := sorry
+ ((getCount).r... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_4 | db8c3c5b0ba40a9d | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "getOwner_meets_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n verity_spec getOwner_spec using (getOwner_run s)",
"n_chars": 54,
"n_subproofs": 0,
"n_tactics": 2,
"cy... | [
{
"name": "getOwner_run",
"text": "private theorem getOwner_run (s : ContractState) :\n (getOwner).run s = ContractResult.success (s.storageAddr 0) s := by\n verity_unfold getOwner\n simp [owner]\n\n",
"fan_in": 3,
"n_lines": 6,
"n_chars": 162,
"n_subproofs": 0,
"n_tactics": 3,
"c... | [
{
"name": "getOwner_meets_spec",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 172,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"max_nes... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,9 +23,15 @@
/-! ## Owner Guard -/
+private theorem getOwner_run (s : ContractState) :
+ (getOwner).run s = ContractResult.success (s.storageAddr 0) s := by
+ verity_unfold getOwner
+ simp [owner]
+
theorem getOwner_meets_spec (s : ContractState) :
let result := ((getOwner).run s).fst
- getOwner_spec... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_5 | 0f2b01c5ce10fbc1 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "getOwner_meets_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n verity_spec getOwner_spec using (getOwner_run s)",
"n_chars": 54,
"n_subproofs": 0,
"n_tactics": 2,
"cy... | [
{
"name": "getOwner_run",
"text": "private theorem getOwner_run (s : ContractState) :\n (getOwner).run s = ContractResult.success (s.storageAddr 0) s := by\n verity_unfold getOwner\n simp [owner]\n\n",
"fan_in": 3,
"n_lines": 6,
"n_chars": 162,
"n_subproofs": 0,
"n_tactics": 3,
"c... | [
{
"name": "getOwner_returns_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 132,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
"max_... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,8 +23,15 @@
/-! ## Owner Guard -/
+private theorem getOwner_run (s : ContractState) :
+ (getOwner).run s = ContractResult.success (s.storageAddr 0) s := by
+ verity_unfold getOwner
+ simp [owner]
+
theorem getOwner_returns_owner (s : ContractState) :
- ((getOwner).run s).fst = s.storageAddr 0 := sorry
... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_6 | 49522a47d91e4dc3 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "getOwner_meets_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n verity_spec getOwner_spec using (getOwner_run s)",
"n_chars": 54,
"n_subproofs": 0,
"n_tactics": 2,
"cy... | [
{
"name": "getOwner_run",
"text": "private theorem getOwner_run (s : ContractState) :\n (getOwner).run s = ContractResult.success (s.storageAddr 0) s := by\n verity_unfold getOwner\n simp [owner]\n\n",
"fan_in": 3,
"n_lines": 6,
"n_chars": 162,
"n_subproofs": 0,
"n_tactics": 3,
"c... | [
{
"name": "getOwner_preserves_state",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 151,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
"ma... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,8 +23,15 @@
/-! ## Owner Guard -/
+private theorem getOwner_run (s : ContractState) :
+ (getOwner).run s = ContractResult.success (s.storageAddr 0) s := by
+ verity_unfold getOwner
+ simp [owner]
+
theorem getOwner_preserves_state (s : ContractState) :
- ((getOwner).run s).snd = s := sorry
+ ((getOwne... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_7 | 0bf52c5bf93d2966 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 4 | [
{
"theorem_name": "increment_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [increment_unfold s h_owner]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult.snd]\n · intro slotIdx h_... | [
{
"name": "increment_unfold",
"text": "/-- Helper: unfold increment when caller is owner -/\ntheorem increment_unfold (s : ContractState)\n (h_owner : s.sender = s.storageAddr 0) :\n (increment.run s) = ContractResult.success ()\n { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.... | [
{
"name": "increment_meets_spec_when_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 13,
"n_chars": 470,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 2,
"automation_only": false,... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,45 @@
/-! ## Owner Guard -/
+/-- Helper: unfold increment when caller is owner -/
+theorem increment_unfold (s : ContractState)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (increment.run s) = ContractResult.success ()
+ { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.add... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_8 | cef9c750729d698e | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 4 | [
{
"theorem_name": "increment_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [increment_unfold s h_owner]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult.snd]\n · intro slotIdx h_... | [
{
"name": "increment_unfold",
"text": "/-- Helper: unfold increment when caller is owner -/\ntheorem increment_unfold (s : ContractState)\n (h_owner : s.sender = s.storageAddr 0) :\n (increment.run s) = ContractResult.success ()\n { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.... | [
{
"name": "increment_adds_one_when_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 253,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,40 @@
/-! ## Owner Guard -/
+/-- Helper: unfold increment when caller is owner -/
+theorem increment_unfold (s : ContractState)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (increment.run s) = ContractResult.success ()
+ { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.add... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_9 | ba76ea83149eae45 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "increment_reverts_when_not_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold increment; exact guarded_reverts _ s h_not_owner",
"n_chars": 61,
"n_subproofs": 0,
"n_... | [
{
"name": "guarded_reverts",
"text": "private theorem guarded_reverts (f : Unit → Contract α) (s : ContractState)\n (h : s.sender ≠ s.storageAddr 0) :\n ∃ msg, (Verity.bind onlyOwner f).run s = ContractResult.revert msg s :=\n ⟨\"Caller is not the owner\", by simp [Verity.bind, Contract.run, onlyOwne... | [
{
"name": "increment_reverts_when_not_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 8,
"n_chars": 281,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,... | 2 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -29,9 +29,17 @@
Verity.require, Verity.pure, Verity.bind, Bind.bind, Pure.pure,
address_beq_false_of_ne s.sender (s.storageAddr 0) h]
+private theorem guarded_reverts (f : Unit → Contract α) (s : ContractState)
+ (h : s.sender ≠ s.storageAddr 0) :
+ ∃ msg, (Verity.bind onlyOwner f).run s = Contract... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_10 | 1ca58fb9ef0977e6 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 4 | [
{
"theorem_name": "decrement_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [decrement_unfold s h_owner]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult.snd]\n · intro slotIdx h_... | [
{
"name": "decrement_unfold",
"text": "/-- Helper: unfold decrement when caller is owner -/\ntheorem decrement_unfold (s : ContractState)\n (h_owner : s.sender = s.storageAddr 0) :\n (decrement.run s) = ContractResult.success ()\n { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.... | [
{
"name": "decrement_meets_spec_when_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 13,
"n_chars": 470,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 2,
"automation_only": false,... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,45 @@
/-! ## Owner Guard -/
+/-- Helper: unfold decrement when caller is owner -/
+theorem decrement_unfold (s : ContractState)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (decrement.run s) = ContractResult.success ()
+ { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.sub... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_11 | 74f770b8a483f960 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 4 | [
{
"theorem_name": "decrement_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [decrement_unfold s h_owner]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult.snd]\n · intro slotIdx h_... | [
{
"name": "decrement_unfold",
"text": "/-- Helper: unfold decrement when caller is owner -/\ntheorem decrement_unfold (s : ContractState)\n (h_owner : s.sender = s.storageAddr 0) :\n (decrement.run s) = ContractResult.success ()\n { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.... | [
{
"name": "decrement_subtracts_one_when_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 258,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": fals... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,40 @@
/-! ## Owner Guard -/
+/-- Helper: unfold decrement when caller is owner -/
+theorem decrement_unfold (s : ContractState)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (decrement.run s) = ContractResult.success ()
+ { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.sub... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_12 | a32d0e31b20b6cb2 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "increment_reverts_when_not_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold increment; exact guarded_reverts _ s h_not_owner",
"n_chars": 61,
"n_subproofs": 0,
"n_... | [
{
"name": "guarded_reverts",
"text": "private theorem guarded_reverts (f : Unit → Contract α) (s : ContractState)\n (h : s.sender ≠ s.storageAddr 0) :\n ∃ msg, (Verity.bind onlyOwner f).run s = ContractResult.revert msg s :=\n ⟨\"Caller is not the owner\", by simp [Verity.bind, Contract.run, onlyOwne... | [
{
"name": "decrement_reverts_when_not_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 8,
"n_chars": 289,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,... | 2 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -29,9 +29,17 @@
Verity.require, Verity.pure, Verity.bind, Bind.bind, Pure.pure,
address_beq_false_of_ne s.sender (s.storageAddr 0) h]
+private theorem guarded_reverts (f : Unit → Contract α) (s : ContractState)
+ (h : s.sender ≠ s.storageAddr 0) :
+ ∃ msg, (Verity.bind onlyOwner f).run s = Contract... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_13 | 881de8042d0d9f46 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "transferOwnership_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [transferOwnership_unfold s newOwner h_owner.1]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult... | [
{
"name": "transferOwnership_unfold",
"text": "theorem transferOwnership_unfold (s : ContractState) (newOwner : Address)\n (h_owner : s.sender = s.storageAddr 0) :\n (transferOwnership newOwner).run s = ContractResult.success ()\n { «storage» := s.storage,\n transientStorage := s.transientStorage,... | [
{
"name": "transferOwnership_meets_spec_when_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 13,
"n_chars": 572,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 2,
"automation_only"... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,44 @@
/-! ## Owner Guard -/
+theorem transferOwnership_unfold (s : ContractState) (newOwner : Address)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (transferOwnership newOwner).run s = ContractResult.success ()
+ { «storage» := s.storage,
+ transientStorage := s.transientStorage,
+ sto... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_14 | 9fe5582ba74b0506 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "transferOwnership_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [transferOwnership_unfold s newOwner h_owner.1]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult... | [
{
"name": "transferOwnership_unfold",
"text": "theorem transferOwnership_unfold (s : ContractState) (newOwner : Address)\n (h_owner : s.sender = s.storageAddr 0) :\n (transferOwnership newOwner).run s = ContractResult.success ()\n { «storage» := s.storage,\n transientStorage := s.transientStorage,... | [
{
"name": "transferOwnership_changes_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 293,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,39 @@
/-! ## Owner Guard -/
+theorem transferOwnership_unfold (s : ContractState) (newOwner : Address)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (transferOwnership newOwner).run s = ContractResult.success ()
+ { «storage» := s.storage,
+ transientStorage := s.transientStorage,
+ sto... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_15 | 8fbdd4d872135281 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 15 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "increment_reverts_when_not_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold increment; exact guarded_reverts _ s h_not_owner",
"n_chars": 61,
"n_subproofs": 0,
"n_... | [
{
"name": "guarded_reverts",
"text": "private theorem guarded_reverts (f : Unit → Contract α) (s : ContractState)\n (h : s.sender ≠ s.storageAddr 0) :\n ∃ msg, (Verity.bind onlyOwner f).run s = ContractResult.revert msg s :=\n ⟨\"Caller is not the owner\", by simp [Verity.bind, Contract.run, onlyOwne... | [
{
"name": "transferOwnership_reverts_when_not_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 12,
"n_chars": 497,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 1,
"automation_only... | 2 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -29,9 +29,17 @@
Verity.require, Verity.pure, Verity.bind, Bind.bind, Pure.pure,
address_beq_false_of_ne s.sender (s.storageAddr 0) h]
+private theorem guarded_reverts (f : Unit → Contract α) (s : ContractState)
+ (h : s.sender ≠ s.storageAddr 0) :
+ ∃ msg, (Verity.bind onlyOwner f).run s = Contract... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_16 | fabe104ee08c7a72 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 16 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 4 | [
{
"theorem_name": "increment_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [increment_unfold s h_owner]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult.snd]\n · intro slotIdx h_... | [
{
"name": "increment_unfold",
"text": "/-- Helper: unfold increment when caller is owner -/\ntheorem increment_unfold (s : ContractState)\n (h_owner : s.sender = s.storageAddr 0) :\n (increment.run s) = ContractResult.success ()\n { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.... | [
{
"name": "increment_preserves_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 7,
"n_chars": 215,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"m... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,39 @@
/-! ## Owner Guard -/
+/-- Helper: unfold increment when caller is owner -/
+theorem increment_unfold (s : ContractState)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (increment.run s) = ContractResult.success ()
+ { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.add... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_17 | 54b2a0e4f96a93ef | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 17 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 4 | [
{
"theorem_name": "decrement_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [decrement_unfold s h_owner]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult.snd]\n · intro slotIdx h_... | [
{
"name": "decrement_unfold",
"text": "/-- Helper: unfold decrement when caller is owner -/\ntheorem decrement_unfold (s : ContractState)\n (h_owner : s.sender = s.storageAddr 0) :\n (decrement.run s) = ContractResult.success ()\n { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.... | [
{
"name": "decrement_preserves_owner",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 7,
"n_chars": 215,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"m... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,39 @@
/-! ## Owner Guard -/
+/-- Helper: unfold decrement when caller is owner -/
+theorem decrement_unfold (s : ContractState)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (decrement.run s) = ContractResult.success ()
+ { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.sub... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_18 | 3ac64a83c743e110 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 18 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 3 | [
{
"theorem_name": "transferOwnership_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [transferOwnership_unfold s newOwner h_owner.1]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult... | [
{
"name": "transferOwnership_unfold",
"text": "theorem transferOwnership_unfold (s : ContractState) (newOwner : Address)\n (h_owner : s.sender = s.storageAddr 0) :\n (transferOwnership newOwner).run s = ContractResult.success ()\n { «storage» := s.storage,\n transientStorage := s.transientStorage,... | [
{
"name": "transferOwnership_preserves_count",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 312,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,38 @@
/-! ## Owner Guard -/
+theorem transferOwnership_unfold (s : ContractState) (newOwner : Address)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (transferOwnership newOwner).run s = ContractResult.success ()
+ { «storage» := s.storage,
+ transientStorage := s.transientStorage,
+ sto... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_19 | 494b38b5aee971ba | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 19 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 1 | [
{
"theorem_name": "constructor_preserves_wellformedness",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have h_spec := constructor_meets_spec s initialOwner\n rcases h_spec with ⟨h_set, _h_other_addr, h_sa... | [
{
"name": "constructor_meets_spec",
"text": "theorem constructor_meets_spec (s : ContractState) (initialOwner : Address) :\n let s' := ((setStorageAddr owner initialOwner).run s).snd\n constructor_spec initialOwner s s' := by\n refine ⟨?_, ?_, ?_⟩\n · simp [setStorageAddr, owner, Contract.run, ContractR... | [
{
"name": "constructor_preserves_wellformedness",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 507,
"n_subproofs": 1,
"n_tactics": 5,
"cyclomatic": 3,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": f... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,24 @@
/-! ## Owner Guard -/
+theorem constructor_meets_spec (s : ContractState) (initialOwner : Address) :
+ let s' := ((setStorageAddr owner initialOwner).run s).snd
+ constructor_spec initialOwner s s' := by
+ refine ⟨?_, ?_, ?_⟩
+ · simp [setStorageAddr, owner, Contract.run, ContractResult.snd... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_20 | adf27a2accf3d910 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 20 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 4 | [
{
"theorem_name": "increment_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [increment_unfold s h_owner]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult.snd]\n · intro slotIdx h_... | [
{
"name": "increment_unfold",
"text": "/-- Helper: unfold increment when caller is owner -/\ntheorem increment_unfold (s : ContractState)\n (h_owner : s.sender = s.storageAddr 0) :\n (increment.run s) = ContractResult.success ()\n { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.... | [
{
"name": "increment_preserves_wellformedness",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 304,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": fals... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,40 @@
/-! ## Owner Guard -/
+/-- Helper: unfold increment when caller is owner -/
+theorem increment_unfold (s : ContractState)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (increment.run s) = ContractResult.success ()
+ { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.add... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_9d21569860e3_21 | 039889f46f6abd97 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Contracts/OwnedCounter/Proofs/Basic.lean | Basic | 21 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 8 | 4 | [
{
"theorem_name": "decrement_meets_spec_when_owner",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [decrement_unfold s h_owner]\n refine ⟨?_, ?_, ?_⟩\n · simp [ContractResult.snd]\n · intro slotIdx h_... | [
{
"name": "decrement_unfold",
"text": "/-- Helper: unfold decrement when caller is owner -/\ntheorem decrement_unfold (s : ContractState)\n (h_owner : s.sender = s.storageAddr 0) :\n (decrement.run s) = ContractResult.success ()\n { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.... | [
{
"name": "decrement_preserves_wellformedness",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 376,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": fal... | 1 | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | /-
Correctness proofs for OwnedCounter contract.
Proves that the composition of Owned + Counter patterns is correct:
- Constructor sets owner without touching counter
- Owner-guarded increment/decrement work when authorized
- Non-owner calls revert
- Ownership and counter storage are independent
- State ... | @@ -23,10 +23,40 @@
/-! ## Owner Guard -/
+/-- Helper: unfold decrement when caller is owner -/
+theorem decrement_unfold (s : ContractState)
+ (h_owner : s.sender = s.storageAddr 0) :
+ (decrement.run s) = ContractResult.success ()
+ { «storage» := fun slotIdx => if (slotIdx == 1) = true then EVM.Uint256.sub... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_0 | 3611ee28f4476a58 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_emitEvent_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 13,
"n_chars": 391,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,27 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_1 | 8f96a556c9eb8bdc | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_letMappingField_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 480,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"autom... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_2 | 76a8ac182195632b | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_letMappingWordField_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 533,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"a... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_3 | b6a00d2d504a9c46 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_letMappingUintField_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 492,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"a... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_4 | 86cb5a215faffcf0 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_letMappingPackedWordField_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 587,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_5 | 573ffecba76cd0d4 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_letMapping2Field_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 501,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"auto... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_6 | 7161f3e72a6f1aeb | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_letMapping2WordField_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 554,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_7 | f8a1dd996791c9cd | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_letStructMemberField_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 539,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_8 | 158790dbd0df76b1 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_letStructMember2Field_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 560,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_9 | 4d3fd30d0400f49a | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_setMappingUintSingle_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 477,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_10 | edcc0d9556652c40 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_setMappingChainSingle_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 15,
"n_chars": 501,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,6 +208,16 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = t... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_11 | 1e901c43b0be272e | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_setMappingSingle_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 465,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"auto... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_12 | bf61f6c614481895 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_setMappingWordSingle_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 15,
"n_chars": 522,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,6 +208,16 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = t... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_13 | 0246d11836583e64 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_setMappingPackedWordSingle_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 16,
"n_chars": 580,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,6 +208,16 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = t... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_14 | 7aed4b53e3e6331d | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_setStructMemberSingle_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 513,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_15 | 56942f4f9f00cd07 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 15 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_setMapping2Single_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 486,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"aut... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_16 | fbf087878849f683 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 16 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_setMapping2WordSingle_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 15,
"n_chars": 543,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,6 +208,16 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = t... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_17 | 2da52e8d6fbecc94 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 17 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 18 | [
{
"theorem_name": "false_of_supportedStmtList_emitEvent_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n false_of_supportedStmtList_singleton_stmt_surface\n (stmt := Stmt.emit eventName args)\n (b... | [
{
"name": "false_of_supportedStmtList_singleton_stmt_surface",
"text": "private theorem false_of_supportedStmtList_singleton_stmt_surface\n {stmt : Stmt}\n (hunsupported : stmtTouchesUnsupportedContractSurface stmt = true)\n (hsurface : stmtListTouchesUnsupportedContractSurface [stmt] = false) :\n ... | [
{
"name": "false_of_supportedStmtList_setStructMember2Single_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 534,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,13 +208,28 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem false_of_supportedStmtList_singleton_stmt_surface
+ {stmt : Stmt}
+ (hunsupported : stmtTouchesUnsupportedContractSurface stmt = ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_18 | c95c737c2671f038 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 18 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "stmtListCompileCore_of_scopeNamesIncluded",
"depth": 1,
"n_commands": 0,
"n_lines": 33,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hcore generalizing largerScope with\n | nil => exact .nil\n | letVar hvalue hinScope... | [
{
"name": "scopeNamesIncluded_cons",
"text": "private theorem scopeNamesIncluded_cons\n {name : String} {scope largerScope : List String}\n (hincluded : FunctionBody.scopeNamesIncluded scope largerScope) :\n FunctionBody.scopeNamesIncluded (name :: scope) (name :: largerScope) := by\n intro n hn\n... | [
{
"name": "stmtListCompileCore_of_scopeNamesIncluded",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 40,
"n_chars": 1759,
"n_subproofs": 0,
"n_tactics": 33,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 9,
"automation_o... | 2 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -217,6 +217,16 @@
intro name hname
exact hincluded name (hinScope name hname)
+private theorem scopeNamesIncluded_cons
+ {name : String} {scope largerScope : List String}
+ (hincluded : FunctionBody.scopeNamesIncluded scope largerScope) :
+ FunctionBody.scopeNamesIncluded (name :: scope) (name :: la... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_19 | be707b65336ace2e | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 19 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 1 | [
{
"theorem_name": "stmtListTerminalCore_of_scopeNamesIncluded",
"depth": 1,
"n_commands": 0,
"n_lines": 38,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hterminal generalizing largerScope with\n | letVar hvalue hinScope hrest ih =>\n ... | [
{
"name": "stmtListCompileCore_of_scopeNamesIncluded",
"text": "private theorem stmtListCompileCore_of_scopeNamesIncluded\n {scope largerScope : List String}\n {stmts : List Stmt}\n (hcore : FunctionBody.StmtListCompileCore scope stmts)\n (hincluded : FunctionBody.scopeNamesIncluded scope larger... | [
{
"name": "stmtListTerminalCore_of_scopeNamesIncluded",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 3,
"n_lines": 45,
"n_chars": 2108,
"n_subproofs": 0,
"n_tactics": 38,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 9,
"automation_... | 3 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -227,6 +227,45 @@
· exact Or.inl rfl
· exact Or.inr (hincluded n hn)
+private theorem stmtListCompileCore_of_scopeNamesIncluded
+ {scope largerScope : List String}
+ {stmts : List Stmt}
+ (hcore : FunctionBody.StmtListCompileCore scope stmts)
+ (hincluded : FunctionBody.scopeNamesIncluded scope l... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_20 | 2a5a686e115d6b9d | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 20 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 4 | [
{
"theorem_name": "stmtListCompileCore_of_scopeNamesIncluded",
"depth": 1,
"n_commands": 0,
"n_lines": 33,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hcore generalizing largerScope with\n | nil => exact .nil\n | letVar hvalue hinScope... | [
{
"name": "exprBoundNamesInScope_of_scopeNamesIncluded",
"text": "private theorem exprBoundNamesInScope_of_scopeNamesIncluded\n {expr : Expr}\n {scope largerScope : List String}\n (hinScope : FunctionBody.exprBoundNamesInScope expr scope)\n (hincluded : FunctionBody.scopeNamesIncluded scope larg... | [
{
"name": "stmtListGenericCore_of_stmtListCompileCore_of_scopeNamesIncluded",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 83,
"n_chars": 4188,
"n_subproofs": 0,
"n_tactics": 75,
"cyclomatic": 10,
"n_automation": 0,
"n_rewrites": 0,
"n_structura... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,6 +208,15 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+private theorem exprBoundNamesInScope_of_scopeNamesIncluded
+ {expr : Expr}
+ {scope largerScope : List String}
+ (hinScope : FunctionBody.expr... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_21 | 7234145ad3f186b2 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 21 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "stmtListGenericCore_of_stmtListTerminalCore_of_scopeNamesIncluded",
"depth": 1,
"n_commands": 0,
"n_lines": 89,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hterminal generalizing largerScope with\n | letVar hvalue hin... | [
{
"name": "stmtListGenericCore_of_stmtListCompileCore_of_scopeNamesIncluded",
"text": "private theorem stmtListGenericCore_of_stmtListCompileCore_of_scopeNamesIncluded\n {fields : List Field}\n {scope largerScope : List String}\n {stmts : List Stmt}\n (hcore : FunctionBody.StmtListCompileCore sc... | [
{
"name": "stmtListGenericCore_of_stmtListTerminalCore_of_scopeNamesIncluded",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 5,
"n_lines": 97,
"n_chars": 4939,
"n_subproofs": 0,
"n_tactics": 89,
"cyclomatic": 11,
"n_automation": 0,
"n_rewrites": 0,
"n_structur... | 5 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -310,6 +310,88 @@
(ihElse hincluded)
(stmtListCompileCore_of_scopeNamesIncluded hrest hincluded)
+private theorem stmtListGenericCore_of_stmtListCompileCore_of_scopeNamesIncluded
+ {fields : List Field}
+ {scope largerScope : List String}
+ {stmts : List Stmt}
+ (hcore : FunctionBody.... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_22 | a732ef0868b451ae | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 22 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "stmtListGenericCore_of_stmtListTerminalCore_of_scopeNamesIncluded",
"depth": 1,
"n_commands": 0,
"n_lines": 89,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hterminal generalizing largerScope with\n | letVar hvalue hin... | [
{
"name": "stmtListGenericCore_of_stmtListCompileCore_of_scopeNamesIncluded",
"text": "private theorem stmtListGenericCore_of_stmtListCompileCore_of_scopeNamesIncluded\n {fields : List Field}\n {scope largerScope : List String}\n {stmts : List Stmt}\n (hcore : FunctionBody.StmtListCompileCore sc... | [
{
"name": "stmtListGenericCore_of_stmtListCompileCore",
"fan_in": 4,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 11,
"n_chars": 353,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_on... | 2 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -217,12 +217,97 @@
intro name hname
exact hincluded name (hinScope name hname)
+private theorem stmtListGenericCore_of_stmtListCompileCore_of_scopeNamesIncluded
+ {fields : List Field}
+ {scope largerScope : List String}
+ {stmts : List Stmt}
+ (hcore : FunctionBody.StmtListCompileCore scope stmt... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_23 | 715ab501b8aaf600 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 23 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "stmtListGenericCore_of_stmtListTerminalCore_of_scopeNamesIncluded",
"depth": 1,
"n_commands": 0,
"n_lines": 89,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hterminal generalizing largerScope with\n | letVar hvalue hin... | [
{
"name": "stmtListGenericCore_of_stmtListCompileCore_of_scopeNamesIncluded",
"text": "private theorem stmtListGenericCore_of_stmtListCompileCore_of_scopeNamesIncluded\n {fields : List Field}\n {scope largerScope : List String}\n {stmts : List Stmt}\n (hcore : FunctionBody.StmtListCompileCore sc... | [
{
"name": "stmtListGenericCore_of_stmtListTerminalCore",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 6,
"n_lines": 11,
"n_chars": 364,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_o... | 6 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -310,6 +310,88 @@
(ihElse hincluded)
(stmtListCompileCore_of_scopeNamesIncluded hrest hincluded)
+private theorem stmtListGenericCore_of_stmtListCompileCore_of_scopeNamesIncluded
+ {fields : List Field}
+ {scope largerScope : List String}
+ {stmts : List Stmt}
+ (hcore : FunctionBody.... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_24 | 5cc697e11baef162 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 24 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 4 | [
{
"theorem_name": "stmtListGenericCore_singleton_requireLiteralGuardFamilyClause",
"depth": 1,
"n_commands": 0,
"n_lines": 106,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases clause with\n | mk family n m p q message =>\n cases family wit... | [
{
"name": "stmtListGenericCore_of_stmtListCompileCore",
"text": "theorem stmtListGenericCore_of_stmtListCompileCore\n {fields : List Field}\n {scope : List String}\n {stmts : List Stmt}\n (hcore : FunctionBody.StmtListCompileCore scope stmts) :\n StmtListGenericCore fields scope stmts :=\n s... | [
{
"name": "stmtListGenericCore_singleton_requireLiteralGuardFamilyClause",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 112,
"n_chars": 6841,
"n_subproofs": 8,
"n_tactics": 106,
"cyclomatic": 20,
"n_automation": 16,
"n_rewrites": 8,
"n_structura... | 3 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -299,6 +299,16 @@
(ih <| FunctionBody.scopeNamesIncluded_collectStmtNames_tail
(stmt := .tstore _ _) hincluded)
+theorem stmtListGenericCore_of_stmtListCompileCore
+ {fields : List Field}
+ {scope : List String}
+ {stmts : List Stmt}
+ (hcore : FunctionBody.StmtListCompileCore sco... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_25 | a7dac01d557fbfae | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 25 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 3 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_append_of_surface_exceptMappingWrites",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [stmtListTouchesUnsupportedContractSurfaceExceptMappingWr... | [
{
"name": "stmtListGenericCore_append",
"text": "theorem stmtListGenericCore_append\n {fields : List Field}\n {scope : List String}\n {«prefix» «suffix» : List Stmt}\n (hprefix : StmtListGenericCore fields scope «prefix»)\n (hsuffix :\n StmtListGenericCore\n fields\n (List.... | [
{
"name": "stmtListGenericCore_of_supportedStmtList_append_of_surface_exceptMappingWrites",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 21,
"n_chars": 1117,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
... | 1 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -208,6 +208,24 @@
findDynamicArrayElementAtSlotCopy fields runtime.world
(mapping2WordTargetSlot slot keyNat1 keyNat2 wordOffset) = none)
+theorem stmtListGenericCore_append
+ {fields : List Field}
+ {scope : List String}
+ {«prefix» «suffix» : List Stmt}
+ (hprefix : StmtListGe... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_26 | e247d08f27851559 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 26 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 3 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_append_of_surface_exceptMappingWrites",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [stmtListTouchesUnsupportedContractSurfaceExceptMappingWr... | [
{
"name": "stmtListGenericCore_append",
"text": "theorem stmtListGenericCore_append\n {fields : List Field}\n {scope : List String}\n {«prefix» «suffix» : List Stmt}\n (hprefix : StmtListGenericCore fields scope «prefix»)\n (hsuffix :\n StmtListGenericCore\n fields\n (List.... | [
{
"name": "stmtListGenericCore_of_supportedStmtList_requireClause_of_surface_exceptMappingWrites",
"fan_in": 2,
"n_deps_direct": 3,
"n_deps_transitive": 6,
"n_lines": 20,
"n_chars": 942,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0... | 6 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -420,6 +420,24 @@
simp [FunctionBody.exprBoundNames] at hmem
exact stmtListGenericCore_of_stmtListCompileCore hcore)
+theorem stmtListGenericCore_append
+ {fields : List Field}
+ {scope : List String}
+ {«prefix» «suffix» : List Stmt}
+ (hprefix : StmtListGener... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_27 | ccc47a861bbce244 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 27 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 3 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_of_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 97,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hSupported with\n | compileCore hcore =>\n exact stmtListGenericCore_o... | [
{
"name": "stmtListGenericCore_of_stmtListTerminalCore",
"text": "theorem stmtListGenericCore_of_stmtListTerminalCore\n {fields : List Field}\n {scope : List String}\n {stmts : List Stmt}\n (hterminal : FunctionBody.StmtListTerminalCore scope stmts) :\n StmtListGenericCore fields scope stmts ... | [
{
"name": "stmtListGenericCore_of_supportedStmtList_of_surface",
"fan_in": 2,
"n_deps_direct": 29,
"n_deps_transitive": 36,
"n_lines": 106,
"n_chars": 6398,
"n_subproofs": 0,
"n_tactics": 97,
"cyclomatic": 4,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 37,
... | 36 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -806,6 +806,16 @@
hcore
FunctionBody.scopeNamesIncluded_refl
+theorem stmtListGenericCore_of_stmtListTerminalCore
+ {fields : List Field}
+ {scope : List String}
+ {stmts : List Stmt}
+ (hterminal : FunctionBody.StmtListTerminalCore scope stmts) :
+ StmtListGenericCore fields scope stmts :... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_28 | 287f3ab251f13788 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 28 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_requireClause_of_surface_exceptMappingWrites",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [stmtListTouchesUnsupportedContractSurfaceE... | [
{
"name": "stmtListGenericCore_singleton_requireLiteralGuardFamilyClause",
"text": "private theorem stmtListGenericCore_singleton_requireLiteralGuardFamilyClause\n {fields : List Field}\n {scope : List String}\n (clause : Verity.Core.Free.RequireLiteralGuardFamilyClause) :\n StmtListGenericCore ... | [
{
"name": "stmtListGenericCore_of_supportedStmtList_of_surface_exceptMappingWrites",
"fan_in": 1,
"n_deps_direct": 28,
"n_deps_transitive": 37,
"n_lines": 147,
"n_chars": 8559,
"n_subproofs": 0,
"n_tactics": 136,
"cyclomatic": 13,
"n_automation": 2,
"n_rewrites": 0,
"... | 37 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -1066,6 +1066,117 @@
hterminal
FunctionBody.scopeNamesIncluded_refl
+private theorem stmtListGenericCore_singleton_requireLiteralGuardFamilyClause
+ {fields : List Field}
+ {scope : List String}
+ (clause : Verity.Core.Free.RequireLiteralGuardFamilyClause) :
+ StmtListGenericCore fields scope... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_29 | 4676eb2348ffd72d | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 29 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 3 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_of_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 97,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hSupported with\n | compileCore hcore =>\n exact stmtListGenericCore_o... | [
{
"name": "stmtListGenericCore_of_stmtListTerminalCore",
"text": "theorem stmtListGenericCore_of_stmtListTerminalCore\n {fields : List Field}\n {scope : List String}\n {stmts : List Stmt}\n (hterminal : FunctionBody.StmtListTerminalCore scope stmts) :\n StmtListGenericCore fields scope stmts ... | [
{
"name": "stmtListGenericCore_of_supportedStmtList_of_surface_exceptMappingWrites_stmtSafety",
"fan_in": 1,
"n_deps_direct": 29,
"n_deps_transitive": 58,
"n_lines": 233,
"n_chars": 11588,
"n_subproofs": 13,
"n_tactics": 222,
"cyclomatic": 13,
"n_automation": 14,
"n_rewri... | 58 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -1304,6 +1304,16 @@
hcore
FunctionBody.scopeNamesIncluded_refl
+theorem stmtListGenericCore_of_stmtListTerminalCore
+ {fields : List Field}
+ {scope : List String}
+ {stmts : List Stmt}
+ (hterminal : FunctionBody.StmtListTerminalCore scope stmts) :
+ StmtListGenericCore fields scope stmts... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_30 | e09fe6457b9106e1 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 30 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 3 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_of_surface",
"depth": 1,
"n_commands": 0,
"n_lines": 97,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hSupported with\n | compileCore hcore =>\n exact stmtListGenericCore_o... | [
{
"name": "stmtListGenericCore_of_stmtListTerminalCore",
"text": "theorem stmtListGenericCore_of_stmtListTerminalCore\n {fields : List Field}\n {scope : List String}\n {stmts : List Stmt}\n (hterminal : FunctionBody.StmtListTerminalCore scope stmts) :\n StmtListGenericCore fields scope stmts ... | [
{
"name": "stmtListHelperFreeStepInterface_of_supportedStmtList_of_surface",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 37,
"n_lines": 23,
"n_chars": 954,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural":... | 37 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -806,6 +806,16 @@
hcore
FunctionBody.scopeNamesIncluded_refl
+theorem stmtListGenericCore_of_stmtListTerminalCore
+ {fields : List Field}
+ {scope : List String}
+ {stmts : List Stmt}
+ (hterminal : FunctionBody.StmtListTerminalCore scope stmts) :
+ StmtListGenericCore fields scope stmts :... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_31 | ce439c326590c498 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 31 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 3 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_append_of_surface_exceptMappingWrites",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [stmtListTouchesUnsupportedContractSurfaceExceptMappingWr... | [
{
"name": "stmtListGenericCore_append",
"text": "theorem stmtListGenericCore_append\n {fields : List Field}\n {scope : List String}\n {«prefix» «suffix» : List Stmt}\n (hprefix : StmtListGenericCore fields scope «prefix»)\n (hsuffix :\n StmtListGenericCore\n fields\n (List.... | [
{
"name": "stmtListHelperFreeStepInterface_of_supportedStmtList_of_surface_exceptMappingWrites",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 38,
"n_lines": 21,
"n_chars": 763,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,... | 38 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -1177,6 +1177,24 @@
simp [FunctionBody.exprBoundNames] at hmem
exact stmtListGenericCore_of_stmtListCompileCore hcore)
+theorem stmtListGenericCore_append
+ {fields : List Field}
+ {scope : List String}
+ {«prefix» «suffix» : List Stmt}
+ (hprefix : StmtListGen... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_32 | 0b8cb5e30703e1d3 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 32 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_requireClause_of_surface_exceptMappingWrites",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [stmtListTouchesUnsupportedContractSurfaceE... | [
{
"name": "stmtListGenericCore_singleton_requireLiteralGuardFamilyClause",
"text": "private theorem stmtListGenericCore_singleton_requireLiteralGuardFamilyClause\n {fields : List Field}\n {scope : List String}\n (clause : Verity.Core.Free.RequireLiteralGuardFamilyClause) :\n StmtListGenericCore ... | [
{
"name": "stmtListHelperFreeStepInterface_of_supportedStmtList_of_surface_exceptMappingWrites_stmtSafety",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 59,
"n_lines": 21,
"n_chars": 795,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 1,
"n_automation": 0,
"n_re... | 59 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -1314,6 +1314,117 @@
hterminal
FunctionBody.scopeNamesIncluded_refl
+private theorem stmtListGenericCore_singleton_requireLiteralGuardFamilyClause
+ {fields : List Field}
+ {scope : List String}
+ (clause : Verity.Core.Free.RequireLiteralGuardFamilyClause) :
+ StmtListGenericCore fields scope... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_33 | db921a6ff6ea02c7 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 33 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 3 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_append_of_surface_exceptMappingWrites",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [stmtListTouchesUnsupportedContractSurfaceExceptMappingWr... | [
{
"name": "stmtListGenericCore_append",
"text": "theorem stmtListGenericCore_append\n {fields : List Field}\n {scope : List String}\n {«prefix» «suffix» : List Stmt}\n (hprefix : StmtListGenericCore fields scope «prefix»)\n (hsuffix :\n StmtListGenericCore\n fields\n (List.... | [
{
"name": "stmtListHelperFreeStepInterface_of_supportedStmtList_of_featureClosed_exceptMappingWrites",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 39,
"n_lines": 26,
"n_chars": 1148,
"n_subproofs": 1,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 0,
"n_rewri... | 39 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -1177,6 +1177,24 @@
simp [FunctionBody.exprBoundNames] at hmem
exact stmtListGenericCore_of_stmtListCompileCore hcore)
+theorem stmtListGenericCore_append
+ {fields : List Field}
+ {scope : List String}
+ {«prefix» «suffix» : List Stmt}
+ (hprefix : StmtListGen... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_34 | 05a5d00b60e74416 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 34 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_requireClause_of_surface_exceptMappingWrites",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [stmtListTouchesUnsupportedContractSurfaceE... | [
{
"name": "stmtListGenericCore_singleton_requireLiteralGuardFamilyClause",
"text": "private theorem stmtListGenericCore_singleton_requireLiteralGuardFamilyClause\n {fields : List Field}\n {scope : List String}\n (clause : Verity.Core.Free.RequireLiteralGuardFamilyClause) :\n StmtListGenericCore ... | [
{
"name": "stmtListHelperFreeStepInterface_of_supportedStmtList_of_featureClosed_exceptMappingWrites_stmtSafety",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 60,
"n_lines": 26,
"n_chars": 1180,
"n_subproofs": 1,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 0,
... | 60 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -1314,6 +1314,117 @@
hterminal
FunctionBody.scopeNamesIncluded_refl
+private theorem stmtListGenericCore_singleton_requireLiteralGuardFamilyClause
+ {fields : List Field}
+ {scope : List String}
+ (clause : Verity.Core.Free.RequireLiteralGuardFamilyClause) :
+ StmtListGenericCore fields scope... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_35 | f8f63f2013cc8e55 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 35 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_requireClause_of_surface_exceptMappingWrites",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [stmtListTouchesUnsupportedContractSurfaceE... | [
{
"name": "stmtListGenericCore_singleton_requireLiteralGuardFamilyClause",
"text": "private theorem stmtListGenericCore_singleton_requireLiteralGuardFamilyClause\n {fields : List Field}\n {scope : List String}\n (clause : Verity.Core.Free.RequireLiteralGuardFamilyClause) :\n StmtListGenericCore ... | [
{
"name": "SupportedBodyInterface.helperFreeStepInterface",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 38,
"n_lines": 22,
"n_chars": 850,
"n_subproofs": 1,
"n_tactics": 15,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automat... | 38 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -1314,6 +1314,117 @@
hterminal
FunctionBody.scopeNamesIncluded_refl
+private theorem stmtListGenericCore_singleton_requireLiteralGuardFamilyClause
+ {fields : List Field}
+ {scope : List String}
+ (clause : Verity.Core.Free.RequireLiteralGuardFamilyClause) :
+ StmtListGenericCore fields scope... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_36 | eea5085c782591ae | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 36 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 3 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_append_of_surface_exceptMappingWrites",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [stmtListTouchesUnsupportedContractSurfaceExceptMappingWr... | [
{
"name": "stmtListGenericCore_append",
"text": "theorem stmtListGenericCore_append\n {fields : List Field}\n {scope : List String}\n {«prefix» «suffix» : List Stmt}\n (hprefix : StmtListGenericCore fields scope «prefix»)\n (hsuffix :\n StmtListGenericCore\n fields\n (List.... | [
{
"name": "SupportedBodyInterfaceExceptMappingWrites.helperFreeStepInterface",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 40,
"n_lines": 20,
"n_chars": 819,
"n_subproofs": 0,
"n_tactics": 11,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structura... | 40 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -1425,6 +1425,24 @@
simp [FunctionBody.exprBoundNames] at hmem
exact stmtListGenericCore_of_stmtListCompileCore hcore)
+theorem stmtListGenericCore_append
+ {fields : List Field}
+ {scope : List String}
+ {«prefix» «suffix» : List Stmt}
+ (hprefix : StmtListGen... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_37 | 133bd614f8a4e5f5 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 37 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 3 | [
{
"theorem_name": "stmtListGenericCore_of_supportedStmtList_append_of_surface_exceptMappingWrites",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [stmtListTouchesUnsupportedContractSurfaceExceptMappingWr... | [
{
"name": "stmtListGenericCore_append",
"text": "theorem stmtListGenericCore_append\n {fields : List Field}\n {scope : List String}\n {«prefix» «suffix» : List Stmt}\n (hprefix : StmtListGenericCore fields scope «prefix»)\n (hsuffix :\n StmtListGenericCore\n fields\n (List.... | [
{
"name": "SupportedBodyInterfaceExceptMappingWrites.helperFreeStepInterface_stmtSafety",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 61,
"n_lines": 21,
"n_chars": 854,
"n_subproofs": 0,
"n_tactics": 11,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"... | 61 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -1425,6 +1425,24 @@
simp [FunctionBody.exprBoundNames] at hmem
exact stmtListGenericCore_of_stmtListCompileCore hcore)
+theorem stmtListGenericCore_append
+ {fields : List Field}
+ {scope : List String}
+ {«prefix» «suffix» : List Stmt}
+ (hprefix : StmtListGen... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_38 | 357ceb9f62bf0d62 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 38 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "exec_compileStmtList_generic_sizeOf_extraFuel_step",
"depth": 1,
"n_commands": 0,
"n_lines": 134,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hgeneric generalizing runtime state extraFuel with\n | nil =>\n refine... | [
{
"name": "execIRStmts_append_of_not_continue",
"text": "private theorem execIRStmts_append_of_not_continue\n (fuel : Nat)\n (state : IRState)\n (head tail : List YulStmt)\n (irExec : IRExecResult)\n (hhead : execIRStmts fuel state head = irExec)\n (hnot : ∀ next, irExec ≠ .continue next) ... | [
{
"name": "exec_compileStmtList_generic_sizeOf_extraFuel_step",
"fan_in": 1,
"n_deps_direct": 5,
"n_deps_transitive": 5,
"n_lines": 157,
"n_chars": 7081,
"n_subproofs": 20,
"n_tactics": 147,
"cyclomatic": 11,
"n_automation": 18,
"n_rewrites": 17,
"n_structural": 24,
... | 5 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -403,6 +403,35 @@
| .revert state' =>
simpa [execIRStmts, hstmt] using hhead
+private theorem execIRStmts_append_of_not_continue
+ (fuel : Nat)
+ (state : IRState)
+ (head tail : List YulStmt)
+ (irExec : IRExecResult)
+ (hhead : execIRStmts fuel state head = irExec)
+ (... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_39 | cc04e38535380b37 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 39 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "exec_compileStmtList_generic_sizeOf_extraFuel_step",
"depth": 1,
"n_commands": 0,
"n_lines": 134,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hgeneric generalizing runtime state extraFuel with\n | nil =>\n refine... | [
{
"name": "execIRStmts_append_of_not_continue",
"text": "private theorem execIRStmts_append_of_not_continue\n (fuel : Nat)\n (state : IRState)\n (head tail : List YulStmt)\n (irExec : IRExecResult)\n (hhead : execIRStmts fuel state head = irExec)\n (hnot : ∀ next, irExec ≠ .continue next) ... | [
{
"name": "exec_compileStmtList_generic_with_helpers_sizeOf_extraFuel_step",
"fan_in": 1,
"n_deps_direct": 5,
"n_deps_transitive": 5,
"n_lines": 164,
"n_chars": 7567,
"n_subproofs": 20,
"n_tactics": 149,
"cyclomatic": 11,
"n_automation": 19,
"n_rewrites": 17,
"n_struc... | 5 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -404,6 +404,35 @@
| .revert state' =>
simpa [execIRStmts, hstmt] using hhead
+private theorem execIRStmts_append_of_not_continue
+ (fuel : Nat)
+ (state : IRState)
+ (head tail : List YulStmt)
+ (irExec : IRExecResult)
+ (hhead : execIRStmts fuel state head = irExec)
+ (... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_40 | a20a5c5da8eff964 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 40 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "exec_compileStmtList_generic_with_helpers_and_helper_ir_sizeOf_extraFuel_step",
"depth": 1,
"n_commands": 0,
"n_lines": 151,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hgeneric generalizing runtime state extraFuel wit... | [
{
"name": "execIRStmtsWithInternals_append_of_not_continue",
"text": "private theorem execIRStmtsWithInternals_append_of_not_continue\n (runtimeContract : IRContract)\n (fuel : Nat)\n (state : IRState)\n (head tail : List YulStmt)\n (irExec : IRExecResultWithInternals)\n (hhead :\n ex... | [
{
"name": "exec_compileStmtList_generic_with_helpers_and_helper_ir_sizeOf_extraFuel_step",
"fan_in": 2,
"n_deps_direct": 5,
"n_deps_transitive": 5,
"n_lines": 180,
"n_chars": 8121,
"n_subproofs": 20,
"n_tactics": 164,
"cyclomatic": 11,
"n_automation": 19,
"n_rewrites": 17... | 5 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -410,6 +410,39 @@
| .leave state' =>
simpa [execIRStmtsWithInternals, hstmt] using hhead
+private theorem execIRStmtsWithInternals_append_of_not_continue
+ (runtimeContract : IRContract)
+ (fuel : Nat)
+ (state : IRState)
+ (head tail : List YulStmt)
+ (irExec : IRExecResul... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_41 | baec0cc24197f38a | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 41 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "exec_compileStmtList_generic_sizeOf_extraFuel_step",
"depth": 1,
"n_commands": 0,
"n_lines": 134,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hgeneric generalizing runtime state extraFuel with\n | nil =>\n refine... | [
{
"name": "execIRStmts_append_of_not_continue",
"text": "private theorem execIRStmts_append_of_not_continue\n (fuel : Nat)\n (state : IRState)\n (head tail : List YulStmt)\n (irExec : IRExecResult)\n (hhead : execIRStmts fuel state head = irExec)\n (hnot : ∀ next, irExec ≠ .continue next) ... | [
{
"name": "exec_compileStmtList_generic_sizeOf_extraFuel",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 7,
"n_lines": 35,
"n_chars": 1362,
"n_subproofs": 0,
"n_tactics": 16,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 3,
"automati... | 7 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -413,6 +413,35 @@
| .revert state' =>
simpa [execIRStmts, hstmt] using hhead
+private theorem execIRStmts_append_of_not_continue
+ (fuel : Nat)
+ (state : IRState)
+ (head tail : List YulStmt)
+ (irExec : IRExecResult)
+ (hhead : execIRStmts fuel state head = irExec)
+ (... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_42 | 6cf0371fac181868 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 42 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "exec_compileStmtList_generic_sizeOf_extraFuel_step",
"depth": 1,
"n_commands": 0,
"n_lines": 134,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hgeneric generalizing runtime state extraFuel with\n | nil =>\n refine... | [
{
"name": "execIRStmts_append_of_not_continue",
"text": "private theorem execIRStmts_append_of_not_continue\n (fuel : Nat)\n (state : IRState)\n (head tail : List YulStmt)\n (irExec : IRExecResult)\n (hhead : execIRStmts fuel state head = irExec)\n (hnot : ∀ next, irExec ≠ .continue next) ... | [
{
"name": "exec_compileStmtList_generic_with_helpers_sizeOf_extraFuel",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 7,
"n_lines": 42,
"n_chars": 1658,
"n_subproofs": 0,
"n_tactics": 19,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 3,
... | 7 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -414,6 +414,35 @@
| .revert state' =>
simpa [execIRStmts, hstmt] using hhead
+private theorem execIRStmts_append_of_not_continue
+ (fuel : Nat)
+ (state : IRState)
+ (head tail : List YulStmt)
+ (irExec : IRExecResult)
+ (hhead : execIRStmts fuel state head = irExec)
+ (... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_43 | b10c90b64630e8da | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 43 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "exec_compileStmtList_generic_with_helpers_and_helper_ir_sizeOf_extraFuel_step",
"depth": 1,
"n_commands": 0,
"n_lines": 151,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hgeneric generalizing runtime state extraFuel wit... | [
{
"name": "execIRStmtsWithInternals_append_of_not_continue",
"text": "private theorem execIRStmtsWithInternals_append_of_not_continue\n (runtimeContract : IRContract)\n (fuel : Nat)\n (state : IRState)\n (head tail : List YulStmt)\n (irExec : IRExecResultWithInternals)\n (hhead :\n ex... | [
{
"name": "exec_compileStmtList_generic_with_helpers_and_helper_ir_sizeOf_extraFuel",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 7,
"n_lines": 47,
"n_chars": 1899,
"n_subproofs": 0,
"n_tactics": 21,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 0,
"n_st... | 7 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -424,6 +424,39 @@
| .leave state' =>
simpa [execIRStmtsWithInternals, hstmt] using hhead
+private theorem execIRStmtsWithInternals_append_of_not_continue
+ (runtimeContract : IRContract)
+ (fuel : Nat)
+ (state : IRState)
+ (head tail : List YulStmt)
+ (irExec : IRExecResul... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_44 | da71111038c3d509 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 44 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "exec_compileStmtList_generic_with_helpers_and_helper_ir_sizeOf_extraFuel_step",
"depth": 1,
"n_commands": 0,
"n_lines": 151,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hgeneric generalizing runtime state extraFuel wit... | [
{
"name": "execIRStmtsWithInternals_append_of_not_continue",
"text": "private theorem execIRStmtsWithInternals_append_of_not_continue\n (runtimeContract : IRContract)\n (fuel : Nat)\n (state : IRState)\n (head tail : List YulStmt)\n (irExec : IRExecResultWithInternals)\n (hhead :\n ex... | [
{
"name": "exec_compileStmtList_generic_with_helpers_and_helper_ir_with_internals_sizeOf_extraFuel_step",
"fan_in": 1,
"n_deps_direct": 4,
"n_deps_transitive": 4,
"n_lines": 191,
"n_chars": 8649,
"n_subproofs": 20,
"n_tactics": 167,
"cyclomatic": 11,
"n_automation": 20,
"... | 4 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -380,6 +380,39 @@
| .leave state' =>
simpa [execIRStmtsWithInternals, hstmt] using hhead
+private theorem execIRStmtsWithInternals_append_of_not_continue
+ (runtimeContract : IRContract)
+ (fuel : Nat)
+ (state : IRState)
+ (head tail : List YulStmt)
+ (irExec : IRExecResul... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_30bbba18bf44_45 | bbd8f232f0d568a4 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Compiler/Proofs/IRGeneration/GenericInduction/Helpers.lean | Helpers | 45 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 80 | 2 | [
{
"theorem_name": "exec_compileStmtList_generic_with_helpers_and_helper_ir_sizeOf_extraFuel_step",
"depth": 1,
"n_commands": 0,
"n_lines": 151,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction hgeneric generalizing runtime state extraFuel wit... | [
{
"name": "execIRStmtsWithInternals_append_of_not_continue",
"text": "private theorem execIRStmtsWithInternals_append_of_not_continue\n (runtimeContract : IRContract)\n (fuel : Nat)\n (state : IRState)\n (head tail : List YulStmt)\n (irExec : IRExecResultWithInternals)\n (hhead :\n ex... | [
{
"name": "exec_compileStmtList_generic_with_helpers_and_helper_ir_with_internals_sizeOf_extraFuel",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 6,
"n_lines": 52,
"n_chars": 2080,
"n_subproofs": 0,
"n_tactics": 22,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites... | 6 | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | import Compiler.Proofs.IRGeneration.GenericInduction.EventBridge
import Compiler.Proofs.IRGeneration.GenericInduction.Loops
set_option linter.unnecessarySeqFocus false
set_option linter.unnecessarySimpa false
set_option linter.unusedSimpArgs false
namespace Compiler.Proofs.IRGeneration
open Compiler
open Compiler.Co... | @@ -394,6 +394,39 @@
| .leave state' =>
simpa [execIRStmtsWithInternals, hstmt] using hhead
+private theorem execIRStmtsWithInternals_append_of_not_continue
+ (runtimeContract : IRContract)
+ (fuel : Nat)
+ (state : IRState)
+ (head tail : List YulStmt)
+ (irExec : IRExecResul... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_0 | 9faafd914d6d48a9 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 1 | [
{
"theorem_name": "modField_nat_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 12,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.... | [
{
"name": "SNARK_SCALAR_FIELD_lt_modulus",
"text": "theorem SNARK_SCALAR_FIELD_lt_modulus :\n (SNARK_SCALAR_FIELD : Nat) < Verity.Core.Uint256.modulus := by\n rw [SNARK_SCALAR_FIELD_val]\n decide\n\n",
"fan_in": 1,
"n_lines": 6,
"n_chars": 147,
"n_subproofs": 0,
"n_tactics": 3,
... | [
{
"name": "modField_nat_eq",
"fan_in": 7,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 15,
"n_chars": 628,
"n_subproofs": 2,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": false,
"max_nesti... | 2 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -42,13 +42,21 @@
rw [SNARK_SCALAR_FIELD_val] at hVal
exact (by decide : (21888242871839275222246405745257275088548364400416034343698204186575808495617 : Nat) ≠ 0) hVal
+theorem SNARK_SCALAR_FIELD_lt_modulus :
+ (SNARK_SCALAR_FIELD : Nat) < Verity.Core.Uint256.modulus := by
+ rw [SNARK_SCALAR_FIELD_val]
+... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_1 | d7a4735f5c30e3c8 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 7 | [
{
"theorem_name": "modField_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [modField_nat_eq]\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne... | [
{
"name": "modField_nat_eq",
"text": "theorem modField_nat_eq (x : Uint256) :\n (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa using h.symm... | [
{
"name": "modField_lt",
"fan_in": 2,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 9,
"n_chars": 335,
"n_subproofs": 1,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 3,
"automation_only": false,
"max_nesting": 4... | 3 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -47,8 +47,27 @@
rw [SNARK_SCALAR_FIELD_val]
decide
+theorem modField_nat_eq (x : Uint256) :
+ (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by
+ have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by
+ intro h
+ exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_2 | 0d765a556c326dad | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 7 | [
{
"theorem_name": "modField_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [modField_nat_eq]\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne... | [
{
"name": "modField_nat_eq",
"text": "theorem modField_nat_eq (x : Uint256) :\n (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa using h.symm... | [
{
"name": "modField_eq_self_of_lt",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 8,
"n_chars": 204,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 2,
"automation_only": false,
"max_... | 3 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -47,9 +47,26 @@
rw [SNARK_SCALAR_FIELD_val]
decide
+theorem modField_nat_eq (x : Uint256) :
+ (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by
+ have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by
+ intro h
+ exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_3 | 5dde107f34f69fbb | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 7 | [
{
"theorem_name": "modField_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [modField_nat_eq]\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne... | [
{
"name": "modField_nat_eq",
"text": "theorem modField_nat_eq (x : Uint256) :\n (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa using h.symm... | [
{
"name": "modField_zero",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 7,
"n_chars": 112,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,
"max_nesting":... | 3 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -47,8 +47,25 @@
rw [SNARK_SCALAR_FIELD_val]
decide
+theorem modField_nat_eq (x : Uint256) :
+ (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by
+ have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by
+ intro h
+ exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_4 | 6ce501fa6fbc36e5 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 7 | [
{
"theorem_name": "modField_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [modField_nat_eq]\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne... | [
{
"name": "modField_nat_eq",
"text": "theorem modField_nat_eq (x : Uint256) :\n (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa using h.symm... | [
{
"name": "modField_SNARK_SCALAR_FIELD",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 7,
"n_chars": 159,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 2,
"automation_only": false,
... | 3 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -47,8 +47,25 @@
rw [SNARK_SCALAR_FIELD_val]
decide
+theorem modField_nat_eq (x : Uint256) :
+ (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by
+ have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by
+ intro h
+ exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_5 | c50ea11a5c107508 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 7 | [
{
"theorem_name": "modField_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [modField_nat_eq]\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne... | [
{
"name": "modField_nat_eq",
"text": "theorem modField_nat_eq (x : Uint256) :\n (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa using h.symm... | [
{
"name": "modField_eq_zero_iff",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 15,
"n_chars": 407,
"n_subproofs": 2,
"n_tactics": 12,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 6,
"automation_only": false,
"max_... | 3 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -47,11 +47,33 @@
rw [SNARK_SCALAR_FIELD_val]
decide
+theorem modField_nat_eq (x : Uint256) :
+ (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by
+ have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by
+ intro h
+ exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simp... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_6 | 55b6c7c8e040acb1 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 7 | [
{
"theorem_name": "modField_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [modField_nat_eq]\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne... | [
{
"name": "modField_nat_eq",
"text": "theorem modField_nat_eq (x : Uint256) :\n (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa using h.symm... | [
{
"name": "modField_eq_of_nat_mod_eq",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 9,
"n_chars": 265,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 2,
"automation_only": false,
"m... | 3 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -47,10 +47,27 @@
rw [SNARK_SCALAR_FIELD_val]
decide
+theorem modField_nat_eq (x : Uint256) :
+ (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by
+ have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by
+ intro h
+ exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simp... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_7 | 4ea06b4e82f6a72f | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 7 | [
{
"theorem_name": "modField_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [modField_nat_eq]\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne... | [
{
"name": "modField_nat_eq",
"text": "theorem modField_nat_eq (x : Uint256) :\n (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa using h.symm... | [
{
"name": "modField_eq_iff_nat_mod_eq",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 13,
"n_chars": 437,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 4,
"automation_only": false,
... | 4 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -47,17 +47,38 @@
rw [SNARK_SCALAR_FIELD_val]
decide
+theorem modField_nat_eq (x : Uint256) :
+ (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by
+ have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by
+ intro h
+ exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simp... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_8 | 1b6cd3656400071a | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 7 | [
{
"theorem_name": "modField_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [modField_nat_eq]\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne... | [
{
"name": "modField_nat_eq",
"text": "theorem modField_nat_eq (x : Uint256) :\n (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa using h.symm... | [
{
"name": "modField_nat_mod_eq",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 5,
"n_chars": 165,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nes... | 4 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -47,8 +47,27 @@
rw [SNARK_SCALAR_FIELD_val]
decide
+theorem modField_nat_eq (x : Uint256) :
+ (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by
+ have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by
+ intro h
+ exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_9 | b7fd86abf74b866a | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 7 | [
{
"theorem_name": "modField_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [modField_nat_eq]\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne... | [
{
"name": "modField_nat_eq",
"text": "theorem modField_nat_eq (x : Uint256) :\n (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by\n have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by\n intro h\n exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simpa using h.symm... | [
{
"name": "modField_idempotent",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 7,
"n_chars": 182,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nes... | 5 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -47,12 +47,34 @@
rw [SNARK_SCALAR_FIELD_val]
decide
+theorem modField_nat_eq (x : Uint256) :
+ (modField x : Nat) = (x : Nat) % (SNARK_SCALAR_FIELD : Nat) := by
+ have hFieldNonzero : (SNARK_SCALAR_FIELD : Nat) ≠ 0 := by
+ intro h
+ exact SNARK_SCALAR_FIELD_ne_zero (Verity.Core.Uint256.ext (by simp... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_10 | bf215f18ba6641c7 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 1 | [
{
"theorem_name": "lt_modulus_of_le_max",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n calc\n n < MAX_UINT256 + 1 := Nat.lt_succ_of_le h\n _ = Verity.Core.Uint256.modulus := by simp [modulus_eq_max_s... | [
{
"name": "modulus_eq_max_succ",
"text": "private theorem modulus_eq_max_succ :\n Verity.Core.Uint256.modulus = MAX_UINT256 + 1 := by\n symm\n exact Verity.Core.Uint256.max_uint256_succ_eq_modulus\n\n",
"fan_in": 1,
"n_lines": 6,
"n_chars": 158,
"n_subproofs": 0,
"n_tactics": 3,
... | [
{
"name": "lt_modulus_of_le_max",
"fan_in": 19,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 7,
"n_chars": 239,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_n... | 1 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -35,8 +35,16 @@
/-! ## BN254 Field Helpers -/
+private theorem modulus_eq_max_succ :
+ Verity.Core.Uint256.modulus = MAX_UINT256 + 1 := by
+ symm
+ exact Verity.Core.Uint256.max_uint256_succ_eq_modulus
+
private theorem lt_modulus_of_le_max {n : Nat} (h : n ≤ MAX_UINT256) :
- n < Verity.Core.Uint256.mo... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_11 | ce3959f8f6c6d45c | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 19 | [
{
"theorem_name": "max_uint256_lt_modulus",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n lt_modulus_of_le_max (Nat.le_refl MAX_UINT256)",
"n_chars": 49,
"n_subproofs": 0,
"n_tactics": 1,
"cycl... | [
{
"name": "lt_modulus_of_le_max",
"text": "private theorem lt_modulus_of_le_max {n : Nat} (h : n ≤ MAX_UINT256) :\n n < Verity.Core.Uint256.modulus := by\n calc\n n < MAX_UINT256 + 1 := Nat.lt_succ_of_le h\n _ = Verity.Core.Uint256.modulus := by simp [modulus_eq_max_succ]\n\n",
"fan_in": 19,
... | [
{
"name": "max_uint256_lt_modulus",
"fan_in": 4,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 7,
"n_chars": 193,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"max_... | 2 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -40,8 +40,15 @@
symm
exact Verity.Core.Uint256.max_uint256_succ_eq_modulus
+private theorem lt_modulus_of_le_max {n : Nat} (h : n ≤ MAX_UINT256) :
+ n < Verity.Core.Uint256.modulus := by
+ calc
+ n < MAX_UINT256 + 1 := Nat.lt_succ_of_le h
+ _ = Verity.Core.Uint256.modulus := by simp [modulus_eq_max... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_12 | e6a9bc6e568b77cd | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 4 | [
{
"theorem_name": "exact_cubic_lt_wExpCubicKernel_scaled_add_error",
"depth": 1,
"n_commands": 0,
"n_lines": 42,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n let second := (r * r) / (2 * WAD_NAT)\n let third := (second * r) / (3 * WAD_NAT)\n let ... | [
{
"name": "WAD_NAT_pos",
"text": "/-- The wad scale used by the TickLib exponential kernel is positive. -/\nprivate theorem WAD_NAT_pos : 0 < WAD_NAT := by\n decide\n\n",
"fan_in": 4,
"n_lines": 5,
"n_chars": 131,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation"... | [
{
"name": "exact_cubic_lt_wExpCubicKernel_scaled_add_error",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 54,
"n_chars": 2668,
"n_subproofs": 13,
"n_tactics": 42,
"cyclomatic": 1,
"n_automation": 13,
"n_rewrites": 0,
"n_structural": 4,
"auto... | 1 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -35,6 +35,10 @@
/-! ## BN254 Field Helpers -/
+/-- The wad scale used by the TickLib exponential kernel is positive. -/
+private theorem WAD_NAT_pos : 0 < WAD_NAT := by
+ decide
+
/-- The exact rational cubic is less than the scaled kernel plus the explicit
integer slack `r / (3 * WAD_NAT) + 3`.
@@ -49,8 +... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_13 | c017780f10d9ffe4 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 4 | [
{
"theorem_name": "exact_cubic_lt_wExpCubicKernel_scaled_add_error",
"depth": 1,
"n_commands": 0,
"n_lines": 42,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n let second := (r * r) / (2 * WAD_NAT)\n let third := (second * r) / (3 * WAD_NAT)\n let ... | [
{
"name": "WAD_NAT_pos",
"text": "/-- The wad scale used by the TickLib exponential kernel is positive. -/\nprivate theorem WAD_NAT_pos : 0 < WAD_NAT := by\n decide\n\n",
"fan_in": 4,
"n_lines": 5,
"n_chars": 131,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation"... | [
{
"name": "exact_cubic_lt_wExpCubicKernel_scaled_add_three",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 19,
"n_chars": 848,
"n_subproofs": 2,
"n_tactics": 11,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 3,
"automat... | 2 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -35,6 +35,10 @@
/-! ## BN254 Field Helpers -/
+/-- The wad scale used by the TickLib exponential kernel is positive. -/
+private theorem WAD_NAT_pos : 0 < WAD_NAT := by
+ decide
+
/-- The exact rational cubic is less than the scaled kernel plus the explicit
integer slack `r / (3 * WAD_NAT) + 3`.
@@ -49,8 +... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_14 | 04f41d716a0ecef7 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 1 | [
{
"theorem_name": "wExpCubicKernel_real_error",
"depth": 1,
"n_commands": 0,
"n_lines": 36,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n let x : ℝ := (r : ℝ) / WAD_NAT\n let P : ℝ := 1 + x + x^2 / 2 + x^3 / 6\n let k : ℝ := (wExpCubicKernel r : ℝ... | [
{
"name": "exact_cubic_lt_wExpCubicKernel_scaled_add_three",
"text": "/-- On the nonnegative TickLib residual interval (`r ≤ WEXP_LN2`), the\nunbounded floor-propagation term vanishes, giving a constant-`3` lower sandwich\nfor the exact cubic numerator. -/\ntheorem exact_cubic_lt_wExpCubicKernel_scaled_add_... | [
{
"name": "wExpCubicKernel_real_error",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 5,
"n_lines": 43,
"n_chars": 1896,
"n_subproofs": 10,
"n_tactics": 36,
"cyclomatic": 2,
"n_automation": 8,
"n_rewrites": 2,
"n_structural": 3,
"automation_only": false,
... | 5 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -127,6 +127,24 @@
simp [wExpCubicKernel, second, third, q]
ring
+/-- On the nonnegative TickLib residual interval (`r ≤ WEXP_LN2`), the
+unbounded floor-propagation term vanishes, giving a constant-`3` lower sandwich
+for the exact cubic numerator. -/
+theorem exact_cubic_lt_wExpCubicKernel_scale... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_15 | 8daa78fc86fba833 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 15 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 1 | [
{
"theorem_name": "wExpLn2_exp_approx_two",
"depth": 1,
"n_commands": 0,
"n_lines": 22,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hbound : |((WEXP_LN2 : ℝ) / WAD_NAT) - Real.log 2| ≤ 3 / 10 ^ 10 :=\n wExpLn2_approx_error\n have hle1 : |... | [
{
"name": "wExpLn2_approx_error",
"text": "/-- The TickLib range-reduction `ln 2` constant approximates `Real.log 2`\nwithin three tenths of a nanounit at WAD scale. -/\ntheorem wExpLn2_approx_error :\n |((WEXP_LN2 : ℝ) / WAD_NAT) - Real.log 2| ≤ 3 / 10 ^ 10 := by\n rw [abs_le]\n constructor\n · have ... | [
{
"name": "wExpLn2_exp_approx_two",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 28,
"n_chars": 1290,
"n_subproofs": 4,
"n_tactics": 22,
"cyclomatic": 1,
"n_automation": 8,
"n_rewrites": 3,
"n_structural": 1,
"automation_only": false,
"m... | 1 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -35,12 +35,26 @@
/-! ## BN254 Field Helpers -/
+/-- The TickLib range-reduction `ln 2` constant approximates `Real.log 2`
+within three tenths of a nanounit at WAD scale. -/
+theorem wExpLn2_approx_error :
+ |((WEXP_LN2 : ℝ) / WAD_NAT) - Real.log 2| ≤ 3 / 10 ^ 10 := by
+ rw [abs_le]
+ constructor
+ · have... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_16 | 8751b6c036422651 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 16 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 1 | [
{
"theorem_name": "tickWExp_exp_decomp",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [wExpRangeReduction_real, Real.exp_add, Real.exp_nat_mul]",
"n_chars": 66,
"n_subproofs": 0,
"n_tactics"... | [
{
"name": "wExpRangeReduction_real",
"text": "/-- Exact range-reduction identity at WAD scale: the full WAD-scaled input\ndecomposes as the reduced residual plus `q` copies of the `ln 2` constant.\nNo approximation — this is the real-cast counterpart of `wExpRangeReduction_exact`. -/\ntheorem wExpRangeReduc... | [
{
"name": "tickWExp_exp_decomp",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 534,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
"max_ne... | 1 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -35,13 +35,28 @@
/-! ## BN254 Field Helpers -/
+/-- Exact range-reduction identity at WAD scale: the full WAD-scaled input
+decomposes as the reduced residual plus `q` copies of the `ln 2` constant.
+No approximation — this is the real-cast counterpart of `wExpRangeReduction_exact`. -/
+theorem wExpRangeReducti... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_17 | 78d3675f28cac20d | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 17 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 1 | [
{
"theorem_name": "abs_pow_sub_pow_le",
"depth": 1,
"n_commands": 0,
"n_lines": 39,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction n with\n | zero =>\n simp\n | succ n ih =>\n let M : ℝ := max |b| |c|\n let d : ℝ := |c - b|... | [
{
"name": "pow_step_bound",
"text": "/-- One-step exponent reconciliation for the power telescoping bound:\nfolds the `n * M^(n-1)` inductive estimate plus the trailing `M^n` term into the\n`(n+1) * M^n` shape. The `cases n` split reconciles the `M^(n-1)` Nat-subtraction\nexponent against `M^n` at `n = 0`. ... | [
{
"name": "abs_pow_sub_pow_le",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 48,
"n_chars": 1837,
"n_subproofs": 7,
"n_tactics": 39,
"cyclomatic": 2,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 7,
"automation_only": false,
"max_n... | 1 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -35,6 +35,28 @@
/-! ## BN254 Field Helpers -/
+/-- One-step exponent reconciliation for the power telescoping bound:
+folds the `n * M^(n-1)` inductive estimate plus the trailing `M^n` term into the
+`(n+1) * M^n` shape. The `cases n` split reconciles the `M^(n-1)` Nat-subtraction
+exponent against `M^n` at `n ... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
ablate_47fd08dea9e3_18 | 034d5642eb8e0427 | lean | lean | github.com/lfglabs-dev/verity | eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978 | Verity/Proofs/Stdlib/Math.lean | Math | 18 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 111 | 1 | [
{
"theorem_name": "wExpLn2_pow_approx_two_pow",
"depth": 1,
"n_commands": 0,
"n_lines": 39,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n let e : ℝ := Real.exp ((WEXP_LN2 : ℝ) / WAD_NAT)\n have herr : |e - 2| ≤ 2 / 10 ^ 9 := by\n simpa [e] using... | [
{
"name": "abs_pow_sub_pow_le",
"text": "/-- Telescoping Lipschitz bound for powers over the reals.\n\nThis is the standard factorization of `c^n - b^n`, bounded termwise by the\nlarger absolute base. It is stated with `n * M^(n-1)` so downstream estimates\ncan multiply a one-step base error into an `n`-ste... | [
{
"name": "wExpLn2_pow_approx_two_pow",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 50,
"n_chars": 2068,
"n_subproofs": 10,
"n_tactics": 39,
"cyclomatic": 1,
"n_automation": 6,
"n_rewrites": 1,
"n_structural": 6,
"automation_only": false,
... | 4 | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | /-
Correctness proofs for all safe arithmetic operations in the Math stdlib.
Covers safeAdd, safeSub, safeMul, and safeDiv: each operation returns
the correct result when within bounds and returns none otherwise.
-/
import Verity.Core
import Verity.Stdlib.Math
import Mathlib.Data.Complex.Exponential
import Math... | @@ -97,6 +97,53 @@
ring
rw [hcast]
+/-- Telescoping Lipschitz bound for powers over the reals.
+
+This is the standard factorization of `c^n - b^n`, bounded termwise by the
+larger absolute base. It is stated with `n * M^(n-1)` so downstream estimates
+can multiply a one-step base error into an `n`-st... | {
"repo": "verity",
"git_repo": "github.com/lfglabs-dev/verity",
"revision": "eeb7a3abe85dd88cc8ee2ece5a77da9b2aba2978",
"lean_toolchain": "leanprover/lean4:v4.22.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-delete-lemm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.