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_39e93f787523_3 | 20669466568dd681 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/Spec/N1ExactV4PathEvidence.lean | N1ExactV4PathEvidence | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 1 | [
{
"theorem_name": "evm_div_n1_call_maxmaxmax_stack_spec_within_word_v4_preNoX1_callableExtra_x9In_exactFrame_unified_of_selected_path_evidence_getLimbN",
"depth": 1,
"n_commands": 0,
"n_lines": 19,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n exact... | [
{
"name": "FullDivN1CallMaxmaxmaxHdivs_of_path_evidence_getLimbN",
"text": "/-- Project the named hdiv package from canonical limb inputs and reachable N1\n path evidence. -/\ntheorem FullDivN1CallMaxmaxmaxHdivs_of_path_evidence_getLimbN\n (sp base : Word) (a b : EvmWord)\n (jOld v5Old v6Old v7Old ... | [
{
"name": "evm_div_n1_call_maxmaxmax_stack_spec_within_word_v4_preNoX1_callableExtra_x9In_exactFrame_unified_of_selected_path_evidence_getLimbN",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 121,
"n_chars": 6219,
"n_subproofs": 0,
"n_tactics": 19,
"cyclomat... | 4 | /-
EvmAsm.Evm64.DivMod.Spec.N1ExactV4PathEvidence
Bridges canonical N1 v4 path evidence into the selected semantic evidence
package without adding more surface area to the large N1ExactV4 file.
-/
import EvmAsm.Evm64.DivMod.Spec.N1ExactV4
import EvmAsm.Evm64.DivMod.Spec.N1PathCallbacks
namespace EvmAsm.Evm64
... | /-
EvmAsm.Evm64.DivMod.Spec.N1ExactV4PathEvidence
Bridges canonical N1 v4 path evidence into the selected semantic evidence
package without adding more surface area to the large N1ExactV4 file.
-/
import EvmAsm.Evm64.DivMod.Spec.N1ExactV4
import EvmAsm.Evm64.DivMod.Spec.N1PathCallbacks
namespace EvmAsm.Evm64
... | @@ -124,6 +124,92 @@
exact fullDivN1CallMaxmaxmaxHdivs_of_word_eq
a b a0 a1 a2 a3 b0 b1 b2 b3 hword
+/-- Project the named hdiv package from canonical limb inputs and reachable N1
+ path evidence. -/
+theorem FullDivN1CallMaxmaxmaxHdivs_of_path_evidence_getLimbN
+ (sp base : Word) (a b : EvmWord)
+ (... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_9bc3eea043b0_0 | 6723b26c26d7d3e2 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/Compose/FullPathN4V4NoNop.lean | FullPathN4V4NoNop | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "evm_div_n4_preloop_max_skip_spec_v4_noNop",
"depth": 1,
"n_commands": 0,
"n_lines": 47,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold isMaxTrialN4 at hbltu\n unfold isSkipBorrowN4Max at hborrow\n let shift := (clzResult b... | [
{
"name": "divK_loop_body_n4_max_skip_j0_norm_v4_noNop",
"text": "/-- Loop body n=4, max+skip, j=0 over `divCode_noNop_v4`, with\n sp-relative addresses in the precondition. -/\ntheorem divK_loop_body_n4_max_skip_j0_norm_v4_noNop (sp base : Word)\n (jOld v5Old v6Old v7Old v10Old v11Old v2Old : Word)\n... | [
{
"name": "evm_div_n4_preloop_max_skip_spec_v4_noNop",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 77,
"n_chars": 4074,
"n_subproofs": 6,
"n_tactics": 48,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 4,
"n_structural": 1,
"automation_o... | 1 | /-
EvmAsm.Evm64.DivMod.Compose.FullPathN4V4NoNop
v4/no-NOP wrappers for the n=4 DIV full path.
-/
import EvmAsm.Evm64.DivMod.Compose.FullPathN4
import EvmAsm.Evm64.DivMod.Compose.FullPathV4NoNop
import EvmAsm.Evm64.DivMod.LoopIterN4MaxV4NoNop
open EvmAsm.Rv64.Tactics
namespace EvmAsm.Evm64
open EvmAsm.Rv64
ope... | /-
EvmAsm.Evm64.DivMod.Compose.FullPathN4V4NoNop
v4/no-NOP wrappers for the n=4 DIV full path.
-/
import EvmAsm.Evm64.DivMod.Compose.FullPathN4
import EvmAsm.Evm64.DivMod.Compose.FullPathV4NoNop
import EvmAsm.Evm64.DivMod.LoopIterN4MaxV4NoNop
open EvmAsm.Rv64.Tactics
namespace EvmAsm.Evm64
open EvmAsm.Rv64
ope... | @@ -15,6 +15,41 @@
open EvmAsm.Rv64
open EvmAsm.Rv64.AddrNorm (se12_32 se12_40 se12_48 se12_56)
+/-- Loop body n=4, max+skip, j=0 over `divCode_noNop_v4`, with
+ sp-relative addresses in the precondition. -/
+theorem divK_loop_body_n4_max_skip_j0_norm_v4_noNop (sp base : Word)
+ (jOld v5Old v6Old v7Old v10Old... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_0 | 2a0fbd2fd727ed08 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "phase_c_beq0_sub_signextCode",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 279,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,8 +34,23 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_1 | bba7f7d383cebaf4 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "phase_c_addi1_sub_signextCode",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 280,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,8 +34,23 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_2 | 3e59ad343f954f13 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "phase_c_beq1_sub_signextCode",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 279,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,8 +34,23 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_3 | 1ebb0d9445405bae | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "phase_c_addi2_sub_signextCode",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 280,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,8 +34,23 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_4 | 965e77a4dce75438 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "phase_c_beq2_sub_signextCode",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 279,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,8 +34,23 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_5 | 364bc5092ed877fc | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "done_sub_signextCode",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 428,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_nes... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,9 +34,24 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_6 | 3f9a836caf886159 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "ld_b1_sub_signextCode",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 253,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_ne... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,8 +34,23 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_7 | 74e252f1ff90985f | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "bne_sub_signextCode",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 269,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_nest... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,8 +34,23 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_8 | 251a2b39dba72e55 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "ld_b0_sub_signextCode",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 267,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_ne... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,8 +34,23 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_9 | 9e056a3ec078ad4b | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "sltiu_sub_signextCode",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 275,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_ne... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,8 +34,23 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_10 | d919721dc209df18 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "beq_sub_signextCode",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 475,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_nes... | 1 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,8 +34,23 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.lengt... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_11 | dfa68e707eb9bce2 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 3 | [
{
"theorem_name": "signext_nochange_high_spec_within",
"depth": 1,
"n_commands": 0,
"n_lines": 82,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n -- Step 1: LD x5 x12 8 at base → extend to signextCode\n have h1 := cpsTripleWithin_extend_code ld_b1_s... | [
{
"name": "done_sub_signextCode",
"text": "/-- Done code (singleton, 1 instr at +188) is subsumed by signextCode. -/\nprivate theorem done_sub_signextCode {base : Word} :\n ∀ a i, CodeReq.singleton (base + 188) (.ADDI .x12 .x12 32) a = some i → signextCode base a = some i :=\n singleton_sub_signextCode ... | [
{
"name": "signext_nochange_high_spec_within",
"fan_in": 0,
"n_deps_direct": 10,
"n_deps_transitive": 11,
"n_lines": 96,
"n_chars": 5318,
"n_subproofs": 19,
"n_tactics": 73,
"cyclomatic": 1,
"n_automation": 4,
"n_rewrites": 6,
"n_structural": 4,
"automation_only":... | 11 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -47,6 +47,14 @@
-- Section 2: Subsumption lemmas
-- ============================================================================
+/-- Done code (singleton, 1 instr at +188) is subsumed by signextCode. -/
+private theorem done_sub_signextCode {base : Word} :
+ ∀ a i, CodeReq.singleton (base + 188) (.ADDI .x12 ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_12 | 30b13093c4657e38 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 3 | [
{
"theorem_name": "signext_nochange_high_spec_within",
"depth": 1,
"n_commands": 0,
"n_lines": 82,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n -- Step 1: LD x5 x12 8 at base → extend to signextCode\n have h1 := cpsTripleWithin_extend_code ld_b1_s... | [
{
"name": "ld_or_16_sub_signextCode",
"text": "private theorem ld_or_16_sub_signextCode {base : Word} :\n ∀ a i, signext_ld_or_acc_code 16 (base + 4) a = some i → signextCode base a = some i := by\n unfold signext_ld_or_acc_code\n exact CodeReq.ofProg_mono_sub base (base + 4) evm_signextend (signext_ld... | [
{
"name": "signext_nochange_geq31_spec_within",
"fan_in": 0,
"n_deps_direct": 17,
"n_deps_transitive": 18,
"n_lines": 132,
"n_chars": 7972,
"n_subproofs": 34,
"n_tactics": 105,
"cyclomatic": 1,
"n_automation": 7,
"n_rewrites": 9,
"n_structural": 6,
"automation_onl... | 18 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -60,6 +60,12 @@
singleton_sub_signextCode base base (.LD .x5 .x12 8) 0
(by decide) (by bv_omega) (by decide)
+private theorem ld_or_16_sub_signextCode {base : Word} :
+ ∀ a i, signext_ld_or_acc_code 16 (base + 4) a = some i → signextCode base a = some i := by
+ unfold signext_ld_or_acc_code
+ exact Co... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_13 | 97169862782b72f0 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 11 | [
{
"theorem_name": "phase_c_beq0_sub_signextCode",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": "\n singleton_sub_signextCode base (base + 56) (.BEQ .x5 .x0 100) 14\n (by decide) (by bv_omega) (by decide)",
... | [
{
"name": "singleton_sub_signextCode",
"text": "/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/\nprivate theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)\n (hk : k < evm_signextend.length)\n (h_addr : addr = base + BitVec.ofNat 64 (4 * k)... | [
{
"name": "signext_phase_c_spec_pure_within_full",
"fan_in": 1,
"n_deps_direct": 6,
"n_deps_transitive": 7,
"n_lines": 112,
"n_chars": 8046,
"n_subproofs": 33,
"n_tactics": 97,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 19,
"n_structural": 5,
"automation_on... | 7 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -34,20 +34,43 @@
-- `CodeReq_union_sub_both` — use `CodeReq.union_sub` from `Rv64/SepLogic.lean` (shared).
+/-- A singleton at instruction k of evm_signextend is subsumed by signextCode. -/
+private theorem singleton_sub_signextCode (base addr : Word) (instr : Instr) (k : Nat)
+ (hk : k < evm_signextend.leng... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_3fbf5b3cc0c3_14 | d2c760ecd709397b | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SignExtend/Compose.lean | Compose | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 33 | 3 | [
{
"theorem_name": "signext_nochange_high_spec_within",
"depth": 1,
"n_commands": 0,
"n_lines": 82,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n -- Step 1: LD x5 x12 8 at base → extend to signextCode\n have h1 := cpsTripleWithin_extend_code ld_b1_s... | [
{
"name": "done_sub_signextCode",
"text": "/-- Done code (singleton, 1 instr at +188) is subsumed by signextCode. -/\nprivate theorem done_sub_signextCode {base : Word} :\n ∀ a i, CodeReq.singleton (base + 188) (.ADDI .x12 .x12 32) a = some i → signextCode base a = some i :=\n singleton_sub_signextCode ... | [
{
"name": "signext_body_spec_within",
"fan_in": 0,
"n_deps_direct": 26,
"n_deps_transitive": 33,
"n_lines": 426,
"n_chars": 28067,
"n_subproofs": 129,
"n_tactics": 369,
"cyclomatic": 2,
"n_automation": 70,
"n_rewrites": 58,
"n_structural": 27,
"automation_only": f... | 33 | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | /-
EvmAsm.Evm64.SignExtend.Compose
Hierarchical composition of SIGNEXTEND CPS specs into full-program theorems.
Composes the 6 execution paths through `evm_signextend` (48 instructions, 192 bytes):
- No-change path 1 (high limbs nonzero): Phase A BNE taken → done
- No-change path 2 (b[0] >= 31): Phase A BEQ ... | @@ -107,6 +107,14 @@
exact CodeReq.ofProg_mono_sub base (base + 156) evm_signextend signext_body_0 39
(by bv_omega) (by decide) (by decide) (by decide)
+/-- Done code (singleton, 1 instr at +188) is subsumed by signextCode. -/
+private theorem done_sub_signextCode {base : Word} :
+ ∀ a i, CodeReq.singleton... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_18f2877ca45f_0 | 33a8603c6c034ad6 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/Compose/PhaseBV5.lean | PhaseBV5 | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 10 | 1 | [
{
"theorem_name": "evm_div_phaseB_n1_spec_within_v5_noNop",
"depth": 1,
"n_commands": 0,
"n_lines": 154,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hinit1_raw := divK_phaseB_init1_spec_within sp (base + phaseBOff) q0 q1 q2 q3 u5 u6 u7\n sim... | [
{
"name": "addi_x5_1_sub_divCode_noNop_v5",
"text": "theorem addi_x5_1_sub_divCode_noNop_v5 {base : Word} :\n ∀ a i, (CodeReq.singleton (base + phaseBStep3Off) (.ADDI .x5 .x0 1)) a = some i →\n (divCode_noNop_v5 base) a = some i := by\n intro a i h\n have hlookup := CodeReq.ofProg_lookup (base + p... | [
{
"name": "evm_div_phaseB_n1_spec_within_v5_noNop",
"fan_in": 0,
"n_deps_direct": 10,
"n_deps_transitive": 10,
"n_lines": 177,
"n_chars": 12117,
"n_subproofs": 45,
"n_tactics": 154,
"cyclomatic": 1,
"n_automation": 8,
"n_rewrites": 6,
"n_structural": 7,
"automatio... | 10 | /-
EvmAsm.Evm64.DivMod.Compose.PhaseBV5
v5 phase-B brick (21 steps, phaseBOff → clzOff, n=1 detection path) over
`divCode_noNop_v5`. Mirror of `evm_div_phaseB_n1_spec_within_v4_noNop`
(PhaseABV4NoNop.lean): phase-B doesn't touch div128, so the same version-agnostic
instruction bodies (init1/init2/tail + add... | /-
EvmAsm.Evm64.DivMod.Compose.PhaseBV5
v5 phase-B brick (21 steps, phaseBOff → clzOff, n=1 detection path) over
`divCode_noNop_v5`. Mirror of `evm_div_phaseB_n1_spec_within_v4_noNop`
(PhaseABV4NoNop.lean): phase-B doesn't touch div128, so the same version-agnostic
instruction bodies (init1/init2/tail + add... | @@ -85,6 +85,14 @@
rw [show (base + phaseBOff : Word) + BitVec.ofNat 64 (4 * 14) = base + phaseBBne3Off from by bv_addr] at hlookup
exact sharedNoNop_v5_b1_div a i (CodeReq.singleton_mono hlookup a i h)
+theorem addi_x5_1_sub_divCode_noNop_v5 {base : Word} :
+ ∀ a i, (CodeReq.singleton (base + phaseBStep3Off... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_1fec923456e9_0 | 727192e617480595 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/Spec/N1V5Shift0Bounds.lean | N1V5Shift0Bounds | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "zero_ult_b0_of_clz_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have h := b0_ge_pow63_of_clz_zero b0 hb0nz hclz\n have hz : (0 : Word).toNat = 0 := by decide\n rw [EvmWord.ult_i... | [
{
"name": "b0_ge_pow63_of_clz_zero",
"text": "/-- On the shift=0 branch (`(clzResult b0).1 = 0`) the divisor's top bit is set:\n `2^63 ≤ b0.toNat`. Specializes `b3_shifted_ge_pow63` at the zero shift\n amount (`b0 <<< 0 = b0`). -/\ntheorem b0_ge_pow63_of_clz_zero (b0 : Word) (hb0nz : b0 ≠ 0)\n (hc... | [
{
"name": "zero_ult_b0_of_clz_zero",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 12,
"n_chars": 447,
"n_subproofs": 2,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
"ma... | 1 | /-
EvmAsm.Evm64.DivMod.Spec.N1V5Shift0Bounds
Foundational bounds for the v5 n=1 **shift=0** lane. When `(clzResult b0).1 = 0`
the divisor `b0` already has its top bit set (`b0 ≥ 2^63`), so on the shift=0
branch the loop runs on the copy-AU outputs `v = (b0, 0, 0, 0)`,
`u = (a0, a1, a2, a3, 0)` with an alrea... | /-
EvmAsm.Evm64.DivMod.Spec.N1V5Shift0Bounds
Foundational bounds for the v5 n=1 **shift=0** lane. When `(clzResult b0).1 = 0`
the divisor `b0` already has its top bit set (`b0 ≥ 2^63`), so on the shift=0
branch the loop runs on the copy-AU outputs `v = (b0, 0, 0, 0)`,
`u = (a0, a1, a2, a3, 0)` with an alrea... | @@ -19,12 +19,26 @@
open EvmAsm.Rv64
+/-- On the shift=0 branch (`(clzResult b0).1 = 0`) the divisor's top bit is set:
+ `2^63 ≤ b0.toNat`. Specializes `b3_shifted_ge_pow63` at the zero shift
+ amount (`b0 <<< 0 = b0`). -/
+theorem b0_ge_pow63_of_clz_zero (b0 : Word) (hb0nz : b0 ≠ 0)
+ (hclz : (clzResult... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_22ea0db3d488_0 | cf6b86bd617c66af | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/EL/Bls12G2MsmPrecompileDispatch.lean | Bls12G2MsmPrecompileDispatch | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "dispatch_success_output_length",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [dispatch_success accelerator h_target h_len h_gas h_status]\n simp [Bls12G2PrecompileResultBridge.msmOu... | [
{
"name": "dispatch_success",
"text": "theorem dispatch_success\n (accelerator : AcceleratorInput -> AcceleratorResult)\n {input : EvmAsm.Evm64.PrecompileInput}\n (h_target : input.target = .bls12G2Msm)\n (h_len : validInputLength input.input = true)\n (h_gas : gasCost input.input <= input.ga... | [
{
"name": "dispatch_success_output_length",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 13,
"n_chars": 582,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
EvmAsm.EL.Bls12G2MsmPrecompileDispatch
Pure EVM BLS12-381 G2 MSM precompile framing. Point validation and
multi-scalar multiplication are supplied by the accelerator boundary; this
module fixes the execution-specs-visible target, invalid-length behavior,
payload-dependent gas, input slicing, and common pr... | /-
EvmAsm.EL.Bls12G2MsmPrecompileDispatch
Pure EVM BLS12-381 G2 MSM precompile framing. Point validation and
multi-scalar multiplication are supplied by the accelerator boundary; this
module fixes the execution-specs-visible target, invalid-length behavior,
payload-dependent gas, input slicing, and common pr... | @@ -137,6 +137,26 @@
else
EvmAsm.Evm64.PrecompileResult.fail input.gas
+theorem dispatch_success
+ (accelerator : AcceleratorInput -> AcceleratorResult)
+ {input : EvmAsm.Evm64.PrecompileInput}
+ (h_target : input.target = .bls12G2Msm)
+ (h_len : validInputLength input.input = true)
+ (h_gas : ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_527b2b63b337_0 | 519c18b692251a50 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/CallSkipLowerBoundV5/Q1dFireOvershoot.lean | Q1dFireOvershoot | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "algorithmQ1dV5_dLo_overshoot_le_vTop_closed",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n by_cases h_fire : algorithmPhase1bFireV5 uHi uLo vTop\n · exact algorithmQ1dV5_dLo_overshoot_l... | [
{
"name": "algorithmQ1dV5_dLo_overshoot_le_vTop_of_phase1b_fire",
"text": "theorem algorithmQ1dV5_dLo_overshoot_le_vTop_of_phase1b_fire\n (uHi uLo vTop : Word)\n (hvTop_ge : vTop.toNat ≥ 2^63)\n (huHi_lt_vTop : uHi.toNat < vTop.toNat)\n (h_fire : algorithmPhase1bFireV5 uHi uLo vTop) :\n (algo... | [
{
"name": "algorithmQ1dV5_dLo_overshoot_le_vTop_closed",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 20,
"n_chars": 944,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_o... | 1 | /-
EvmAsm.Evm64.EvmWordArith.CallSkipLowerBoundV5.Q1dFireOvershoot
Fire-case overshoot bound at the V5 Phase-1b post-1st-correction:
Q1d * dLo ≤ Rhatd * 2^32 + un1 + dHi * 2^32 + dLo
Composes V5.4.0.16 (Q1d ≤ q_true_1 + 1 in fire) + V5.4.0.12 (Q1d
Euclidean) algebraically:
- Q1d ≤ q_true_1 + 1 ⇒ Q1d * ... | /-
EvmAsm.Evm64.EvmWordArith.CallSkipLowerBoundV5.Q1dFireOvershoot
Fire-case overshoot bound at the V5 Phase-1b post-1st-correction:
Q1d * dLo ≤ Rhatd * 2^32 + un1 + dHi * 2^32 + dLo
Composes V5.4.0.16 (Q1d ≤ q_true_1 + 1 in fire) + V5.4.0.12 (Q1d
Euclidean) algebraically:
- Q1d ≤ q_true_1 + 1 ⇒ Q1d * ... | @@ -26,6 +26,89 @@
open EvmAsm.Rv64
+theorem algorithmQ1dV5_dLo_overshoot_le_vTop_of_phase1b_fire
+ (uHi uLo vTop : Word)
+ (hvTop_ge : vTop.toNat ≥ 2^63)
+ (huHi_lt_vTop : uHi.toNat < vTop.toNat)
+ (h_fire : algorithmPhase1bFireV5 uHi uLo vTop) :
+ (algorithmQ1dV5 uHi uLo vTop).toNat * (divKTrialCa... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_52bd122d9789_0 | 442f931af219bc0c | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/Compose/FullPathN1V5FrameShift0.lean | FullPathN1V5FrameShift0 | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "fullDivN1FrameShift0V5_pcFree",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [fullDivN1FrameShift0V5_unfold]; pcFree",
"n_chars": 48,
"n_subproofs": 0,
"n_tactics": 3,
... | [
{
"name": "fullDivN1FrameShift0V5_unfold",
"text": "theorem fullDivN1FrameShift0V5_unfold {sp base a0 a1 a2 a3 b0 scratchMem : Word} :\n fullDivN1FrameShift0V5 sp base a0 a1 a2 a3 b0 scratchMem =\n (let R3 := iterN1Call_v5 b0 0 0 0 a3 0 0 0 0\n let R2 := fullN1S2 b0 0 0 0 a3 0 0 0 0 a2\n let R... | [
{
"name": "fullDivN1FrameShift0V5_pcFree",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 5,
"n_chars": 205,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.DivMod.Compose.FullPathN1V5FrameShift0
The shift=0 loop-state frame for the v5 n=1 shift=0 epilogue composition: the
cells/registers the shift=0 DIV epilogue does NOT touch, carried around it.
Shift=0 counterpart of `fullDivN1FrameV5` (FullPathN1V5Full), with the four
digit iterates at the sh... | /-
EvmAsm.Evm64.DivMod.Compose.FullPathN1V5FrameShift0
The shift=0 loop-state frame for the v5 n=1 shift=0 epilogue composition: the
cells/registers the shift=0 DIV epilogue does NOT touch, carried around it.
Shift=0 counterpart of `fullDivN1FrameV5` (FullPathN1V5Full), with the four
digit iterates at the sh... | @@ -44,8 +44,33 @@
(divKTrialCallV5ScratchOut 0 a3 b0 scratchMem)))) **
regOwn .x1
+theorem fullDivN1FrameShift0V5_unfold {sp base a0 a1 a2 a3 b0 scratchMem : Word} :
+ fullDivN1FrameShift0V5 sp base a0 a1 a2 a3 b0 scratchMem =
+ (let R3 := iterN1Call_v5 b0 0 0 0 a3 0 0 0 0
+ let R2 := fullN1S... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_ce677a9af098_0 | 6c924a95eef818c6 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/Compose/FullPathN2V5FamiliesMod.lean | FullPathN2V5FamiliesMod | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "evm_mod_n2_denorm_epilogue_bundled_spec_noNop_v5Final_exact_x1_frame",
"depth": 1,
"n_commands": 0,
"n_lines": 18,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hDenorm := evm_mod_n2_denorm_epilogue_bundled_spec_noNop_v5Final... | [
{
"name": "evm_mod_n2_denorm_epilogue_bundled_spec_noNop_v5Final",
"text": "/-- v5 MOD n=2 denorm + epilogue (denormOff → nopOff): the SHARED DIV denorm pre\n drives the MOD epilogue (loads the denormalized remainder), yielding the MOD\n denorm post. Mirror of `evm_div_n2_denorm_epilogue_bundled_spec... | [
{
"name": "evm_mod_n2_denorm_epilogue_bundled_spec_noNop_v5Final_exact_x1_frame",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 37,
"n_chars": 1800,
"n_subproofs": 2,
"n_tactics": 18,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 2,
"n_struct... | 1 | /-
EvmAsm.Evm64.DivMod.Compose.FullPathN2V5FamiliesMod
v5 MOD n=2 denorm + epilogue bundle (denormOff → nopOff), over `modCode_noNop_v5`.
The MOD mirror of the DIV `evm_div_n2_denorm_epilogue_bundled_spec_noNop_v5Final`
family (`FullPathN2V5Families.lean`): it shares the DIV denorm PRE
(`fullDivN2DenormPreV5... | /-
EvmAsm.Evm64.DivMod.Compose.FullPathN2V5FamiliesMod
v5 MOD n=2 denorm + epilogue bundle (denormOff → nopOff), over `modCode_noNop_v5`.
The MOD mirror of the DIV `evm_div_n2_denorm_epilogue_bundled_spec_noNop_v5Final`
family (`FullPathN2V5Families.lean`): it shares the DIV denorm PRE
(`fullDivN2DenormPreV5... | @@ -52,6 +52,45 @@
((sp + signExtend12 3936) ↦ₘ
fullDivN2ScratchMemV5 bltu_2 bltu_1 bltu_0 a0 a1 a2 a3 b0 b1 b2 b3 scratchMem)
+/-- v5 MOD n=2 denorm + epilogue (denormOff → nopOff): the SHARED DIV denorm pre
+ drives the MOD epilogue (loads the denormalized remainder), yielding the MOD
+ denorm post. ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_477b61590456_0 | d055edf2a13ca42d | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/Spec/N2V5CallableExactOfShapeMod.lean | N2V5CallableExactOfShapeMod | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 1 | [
{
"theorem_name": "evm_mod_n2_stack_spec_noNop_v5_preNoX1_callableExactFrame_shift0",
"depth": 1,
"n_commands": 0,
"n_lines": 65,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hb1ge : (b.getLimbN 1).toNat ≥ 2 ^ 63 := clz_zero_imp_msb hshift_z\n... | [
{
"name": "n2_shift0_fullPost_to_modStackDispatchPostCallableExactFrame",
"text": "/-- Shift=0 CALLABLE post bridge (MOD): the flag-param full shift=0 path post →\n `modStackDispatchPostCallableExactFrame` (x1 = raVal, x9 = signExtend12 4095)\n with the scratch cell weakened to `memOwn`. Copies the r... | [
{
"name": "evm_mod_n2_stack_spec_noNop_v5_preNoX1_callableExactFrame_shift0",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 89,
"n_chars": 5280,
"n_subproofs": 15,
"n_tactics": 72,
"cyclomatic": 1,
"n_automation": 24,
"n_rewrites": 6,
"n_structur... | 1 | /-
EvmAsm.Evm64.DivMod.Spec.N2V5CallableExactOfShapeMod
MOD mirror of `N2V5CallableExactOfShape`: the v5 n=2 MOD callable exact-frame
lane, shape-level combiner. The shift≠0 arm composes the x9In/x2In-generic
body spec `evm_mod_n2_stack_pre_to_unified_post_v5_noNop_fromShape` with the
callable wrapper `evm_... | /-
EvmAsm.Evm64.DivMod.Spec.N2V5CallableExactOfShapeMod
MOD mirror of `N2V5CallableExactOfShape`: the v5 n=2 MOD callable exact-frame
lane, shape-level combiner. The shift≠0 arm composes the x9In/x2In-generic
body spec `evm_mod_n2_stack_pre_to_unified_post_v5_noNop_fromShape` with the
callable wrapper `evm_... | @@ -21,6 +21,93 @@
open EvmAsm.Rv64
open EvmAsm.Rv64.AddrNorm (word_add_zero)
+/-- Shift=0 CALLABLE post bridge (MOD): the flag-param full shift=0 path post →
+ `modStackDispatchPostCallableExactFrame` (x1 = raVal, x9 = signExtend12 4095)
+ with the scratch cell weakened to `memOwn`. Copies the reshaping of ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_477b61590456_1 | f48739b34929f2cd | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/Spec/N2V5CallableExactOfShapeMod.lean | N2V5CallableExactOfShapeMod | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 1 | [
{
"theorem_name": "evm_mod_n2_stack_spec_noNop_v5_preNoX1_callableExactFrame_of_shape",
"depth": 1,
"n_commands": 0,
"n_lines": 10,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n by_cases hsh : (clzResult (b.getLimbN 1)).1 = 0\n · exact evm_mod_n2_s... | [
{
"name": "evm_mod_n2_stack_spec_noNop_v5_preNoX1_callableExactFrame_shift0",
"text": "/-- n=2 v5 MOD callable exact-frame lane, shift=0 arm. Mirrors the DIV\n `evm_div_n2_stack_spec_noNop_v5_preNoX1_callableExactFrame_shift0`, using the\n mod shift0 remainder facts + the x9In/x2In-generic mod shift0... | [
{
"name": "evm_mod_n2_stack_spec_noNop_v5_preNoX1_callableExactFrame_of_shape",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 32,
"n_chars": 1796,
"n_subproofs": 0,
"n_tactics": 10,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structur... | 3 | /-
EvmAsm.Evm64.DivMod.Spec.N2V5CallableExactOfShapeMod
MOD mirror of `N2V5CallableExactOfShape`: the v5 n=2 MOD callable exact-frame
lane, shape-level combiner. The shift≠0 arm composes the x9In/x2In-generic
body spec `evm_mod_n2_stack_pre_to_unified_post_v5_noNop_fromShape` with the
callable wrapper `evm_... | /-
EvmAsm.Evm64.DivMod.Spec.N2V5CallableExactOfShapeMod
MOD mirror of `N2V5CallableExactOfShape`: the v5 n=2 MOD callable exact-frame
lane, shape-level combiner. The shift≠0 arm composes the x9In/x2In-generic
body spec `evm_mod_n2_stack_pre_to_unified_post_v5_noNop_fromShape` with the
callable wrapper `evm_... | @@ -192,6 +192,94 @@
(fun h hp => memIs_implies_memOwn h hp)
h hExact
+/-- n=2 v5 MOD callable exact-frame lane, shift=0 arm. Mirrors the DIV
+ `evm_div_n2_stack_spec_noNop_v5_preNoX1_callableExactFrame_shift0`, using the
+ mod shift0 remainder facts + the x9In/x2In-generic mod shift0 param path + th... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_a1ef7d407986_0 | 1e204672f11057e1 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SMod/Compose/BaseTopLevel.lean | BaseTopLevel | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 2 | [
{
"theorem_name": "smodCodeCanonical_wrapper_sub",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simpa [smodCodeCanonical] using smodCodeV4_wrapper_sub (base := base)",
"n_chars": 75,
"n_subproofs":... | [
{
"name": "smodCodeV4_wrapper_sub",
"text": "/-- Wrapper sub-region inside `smodCodeV4`. -/\ntheorem smodCodeV4_wrapper_sub {base : Word} :\n ∀ a i, (EvmAsm.Rv64.CodeReq.ofProg base evm_smod_wrapper) a = some i →\n (smodCodeV4 base) a = some i := by\n unfold smodCodeV4\n exact EvmAsm.Rv64.CodeReq.... | [
{
"name": "smodCodeCanonical_wrapper_sub",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 7,
"n_chars": 330,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
... | 1 | /-
EvmAsm.Evm64.SMod.Compose.BaseTopLevel
Top-level SMOD code-region and return-address facts.
-/
import EvmAsm.Evm64.SMod.AddrNorm
import EvmAsm.Evm64.SMod.Compose.ModCallCallable
namespace EvmAsm.Evm64.SMod.Compose
/-- Wrapper sub-region inside the canonical production SMOD code region. -/
theorem smodCodeCan... | /-
EvmAsm.Evm64.SMod.Compose.BaseTopLevel
Top-level SMOD code-region and return-address facts.
-/
import EvmAsm.Evm64.SMod.AddrNorm
import EvmAsm.Evm64.SMod.Compose.ModCallCallable
namespace EvmAsm.Evm64.SMod.Compose
/-- Wrapper sub-region inside `smodCodeV4`. -/
theorem smodCodeV4_wrapper_sub {base : Word} :
... | @@ -9,10 +9,26 @@
namespace EvmAsm.Evm64.SMod.Compose
+/-- Wrapper sub-region inside `smodCodeV4`. -/
+theorem smodCodeV4_wrapper_sub {base : Word} :
+ ∀ a i, (EvmAsm.Rv64.CodeReq.ofProg base evm_smod_wrapper) a = some i →
+ (smodCodeV4 base) a = some i := by
+ unfold smodCodeV4
+ exact EvmAsm.Rv64.CodeR... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_a1ef7d407986_1 | ac13c7adf5196293 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SMod/Compose/BaseTopLevel.lean | BaseTopLevel | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 1 | [
{
"theorem_name": "smodCode_named_top_level_subs",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n exact ⟨smodCode_wrapper_sub, evm_mod_callable_code_v1_sub_smodCode⟩",
"n_chars": 77,
"n_subproofs": 0... | [
{
"name": "smodCode_wrapper_sub",
"text": "/-- Wrapper sub-region inside `smodCode`. -/\ntheorem smodCode_wrapper_sub {base : Word} :\n ∀ a i, (EvmAsm.Rv64.CodeReq.ofProg base evm_smod_wrapper) a = some i →\n (smodCode base) a = some i := by\n unfold smodCode\n exact EvmAsm.Rv64.CodeReq.ofProg_mon... | [
{
"name": "smodCode_named_top_level_subs",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 504,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.SMod.Compose.BaseTopLevel
Top-level SMOD code-region and return-address facts.
-/
import EvmAsm.Evm64.SMod.AddrNorm
import EvmAsm.Evm64.SMod.Compose.ModCallCallable
namespace EvmAsm.Evm64.SMod.Compose
/-- Bundled top-level SMOD code subsumptions for the wrapper and named appended
legacy v1 u... | /-
EvmAsm.Evm64.SMod.Compose.BaseTopLevel
Top-level SMOD code-region and return-address facts.
-/
import EvmAsm.Evm64.SMod.AddrNorm
import EvmAsm.Evm64.SMod.Compose.ModCallCallable
namespace EvmAsm.Evm64.SMod.Compose
/-- Wrapper sub-region inside `smodCode`. -/
theorem smodCode_wrapper_sub {base : Word} :
∀... | @@ -9,13 +9,29 @@
namespace EvmAsm.Evm64.SMod.Compose
+/-- Wrapper sub-region inside `smodCode`. -/
+theorem smodCode_wrapper_sub {base : Word} :
+ ∀ a i, (EvmAsm.Rv64.CodeReq.ofProg base evm_smod_wrapper) a = some i →
+ (smodCode base) a = some i := by
+ unfold smodCode
+ exact EvmAsm.Rv64.CodeReq.ofPro... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_a1ef7d407986_2 | 25fe55df5b0d0b2c | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SMod/Compose/BaseTopLevel.lean | BaseTopLevel | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 2 | [
{
"theorem_name": "smodCodeCanonical_wrapper_sub",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simpa [smodCodeCanonical] using smodCodeV4_wrapper_sub (base := base)",
"n_chars": 75,
"n_subproofs":... | [
{
"name": "smodCodeV4_wrapper_sub",
"text": "/-- Wrapper sub-region inside `smodCodeV4`. -/\ntheorem smodCodeV4_wrapper_sub {base : Word} :\n ∀ a i, (EvmAsm.Rv64.CodeReq.ofProg base evm_smod_wrapper) a = some i →\n (smodCodeV4 base) a = some i := by\n unfold smodCodeV4\n exact EvmAsm.Rv64.CodeReq.... | [
{
"name": "smodCodeV4_named_top_level_subs",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 510,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,... | 1 | /-
EvmAsm.Evm64.SMod.Compose.BaseTopLevel
Top-level SMOD code-region and return-address facts.
-/
import EvmAsm.Evm64.SMod.AddrNorm
import EvmAsm.Evm64.SMod.Compose.ModCallCallable
namespace EvmAsm.Evm64.SMod.Compose
/-- Bundled top-level SMOD v4 code subsumptions for the wrapper and named
appended v4 unsig... | /-
EvmAsm.Evm64.SMod.Compose.BaseTopLevel
Top-level SMOD code-region and return-address facts.
-/
import EvmAsm.Evm64.SMod.AddrNorm
import EvmAsm.Evm64.SMod.Compose.ModCallCallable
namespace EvmAsm.Evm64.SMod.Compose
/-- Wrapper sub-region inside `smodCodeV4`. -/
theorem smodCodeV4_wrapper_sub {base : Word} :
... | @@ -9,13 +9,29 @@
namespace EvmAsm.Evm64.SMod.Compose
+/-- Wrapper sub-region inside `smodCodeV4`. -/
+theorem smodCodeV4_wrapper_sub {base : Word} :
+ ∀ a i, (EvmAsm.Rv64.CodeReq.ofProg base evm_smod_wrapper) a = some i →
+ (smodCodeV4 base) a = some i := by
+ unfold smodCodeV4
+ exact EvmAsm.Rv64.CodeR... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_a1ef7d407986_3 | a538ebf2d7cbb5f9 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/SMod/Compose/BaseTopLevel.lean | BaseTopLevel | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 2 | [
{
"theorem_name": "smodCodeCanonical_wrapper_sub",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simpa [smodCodeCanonical] using smodCodeV4_wrapper_sub (base := base)",
"n_chars": 75,
"n_subproofs":... | [
{
"name": "smodCodeV4_wrapper_sub",
"text": "/-- Wrapper sub-region inside `smodCodeV4`. -/\ntheorem smodCodeV4_wrapper_sub {base : Word} :\n ∀ a i, (EvmAsm.Rv64.CodeReq.ofProg base evm_smod_wrapper) a = some i →\n (smodCodeV4 base) a = some i := by\n unfold smodCodeV4\n exact EvmAsm.Rv64.CodeReq.... | [
{
"name": "smodCodeCanonical_named_top_level_subs",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 10,
"n_chars": 552,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only":... | 2 | /-
EvmAsm.Evm64.SMod.Compose.BaseTopLevel
Top-level SMOD code-region and return-address facts.
-/
import EvmAsm.Evm64.SMod.AddrNorm
import EvmAsm.Evm64.SMod.Compose.ModCallCallable
namespace EvmAsm.Evm64.SMod.Compose
/-- Bundled top-level SMOD v4 code subsumptions for the wrapper and named
appended v4 unsig... | /-
EvmAsm.Evm64.SMod.Compose.BaseTopLevel
Top-level SMOD code-region and return-address facts.
-/
import EvmAsm.Evm64.SMod.AddrNorm
import EvmAsm.Evm64.SMod.Compose.ModCallCallable
namespace EvmAsm.Evm64.SMod.Compose
/-- Wrapper sub-region inside `smodCodeV4`. -/
theorem smodCodeV4_wrapper_sub {base : Word} :
... | @@ -9,13 +9,29 @@
namespace EvmAsm.Evm64.SMod.Compose
+/-- Wrapper sub-region inside `smodCodeV4`. -/
+theorem smodCodeV4_wrapper_sub {base : Word} :
+ ∀ a i, (EvmAsm.Rv64.CodeReq.ofProg base evm_smod_wrapper) a = some i →
+ (smodCodeV4 base) a = some i := by
+ unfold smodCodeV4
+ exact EvmAsm.Rv64.CodeR... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_1c5a596ed7f0_0 | 38b9f869a828fc2e | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/CalcExcessBlobGasSAsm.lean | CalcExcessBlobGasSAsm | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "calcExcessBlobGas_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 19,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hsound := Stmt.retSound Region.empty RwRegion.empty calcExcessBlobGasBody base ret\n \"calcExcessBlobGas.\"... | [
{
"name": "calcExcessBlobGas_sp_post",
"text": "private theorem calcExcessBlobGas_sp_post\n (parentExcess blobGasUsed target : Word) :\n ∀ rf ws A,\n Stmt.sp Region.empty RwRegion.empty calcExcessBlobGasBody\n (calcExcessBlobGasPre parentExcess blobGasUsed target) rf ws A →\n calc... | [
{
"name": "calcExcessBlobGas_spec",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 28,
"n_chars": 1244,
"n_subproofs": 1,
"n_tactics": 19,
"cyclomatic": 4,
"n_automation": 10,
"n_rewrites": 1,
"n_structural": 5,
"automation_only": false,
"... | 1 | /-
EvmAsm.Codegen.Programs.CalcExcessBlobGasSAsm
Byte-identical return-terminating SAsm proof for `calc_excess_blob_gas`.
The emitted routine has two `ret` tails, so this uses `Stmt.retIf` rather
than the single-exit `Fn.Spec` path.
-/
import EvmAsm.Rv64.SAsm.StmtSound
import EvmAsm.Codegen.Programs.Header
n... | /-
EvmAsm.Codegen.Programs.CalcExcessBlobGasSAsm
Byte-identical return-terminating SAsm proof for `calc_excess_blob_gas`.
The emitted routine has two `ret` tails, so this uses `Stmt.retIf` rather
than the single-exit `Fn.Spec` path.
-/
import EvmAsm.Rv64.SAsm.StmtSound
import EvmAsm.Codegen.Programs.Header
n... | @@ -40,6 +40,37 @@
#guard !calcExcessBlobGasBody.offsetsOk
#guard calcExcessBlobGasBody.flatten 0 = calcExcessBlobGas_prog
+private theorem calcExcessBlobGas_sp_post
+ (parentExcess blobGasUsed target : Word) :
+ ∀ rf ws A,
+ Stmt.sp Region.empty RwRegion.empty calcExcessBlobGasBody
+ (calcExces... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_a88ba26300af_0 | 45608745f382c467 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/DivAddbackCarry.lean | DivAddbackCarry | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 1 | [
{
"theorem_name": "addback_limb_nat_word_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 58,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro uPlusCarry uNew ac1 ac2 carryOut\n have h_excl := addback_carries_exclusive u_i v_i carryIn hci\n have h_... | [
{
"name": "or_toNat_eq_add_of_le_one",
"text": "/-- When two Words are each 0 or 1, and their sum ≤ 1, OR equals ADD.\n This is used for the addback carry: the two overflow flags ac1, ac2\n can't both be 1 (proven by addback_limb_nat_eq), so OR correctly\n computes the carry. -/\ntheorem or_toNat_e... | [
{
"name": "addback_limb_nat_word_eq",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 74,
"n_chars": 3638,
"n_subproofs": 22,
"n_tactics": 63,
"cyclomatic": 6,
"n_automation": 18,
"n_rewrites": 12,
"n_structural": 4,
"automation_only": false,
... | 2 | /-
EvmAsm.Evm64.EvmWordArith.DivAddbackCarry
Register-level addback carry bridge: connects the per-limb addback
operations (two-step ADD with OR carry) to the Nat-level addition
equation needed by `addback_4limb_val256`.
Key results:
- or_toNat_eq_add_of_le_one: OR = ADD for {0,1}-valued Words
- addback... | /-
EvmAsm.Evm64.EvmWordArith.DivAddbackCarry
Register-level addback carry bridge: connects the per-limb addback
operations (two-step ADD with OR carry) to the Nat-level addition
equation needed by `addback_4limb_val256`.
Key results:
- or_toNat_eq_add_of_le_one: OR = ADD for {0,1}-valued Words
- addback... | @@ -24,6 +24,27 @@
-- OR = ADD for {0, 1}-valued Words
-- ============================================================================
+/-- When two Words are each 0 or 1, and their sum ≤ 1, OR equals ADD.
+ This is used for the addback carry: the two overflow flags ac1, ac2
+ can't both be 1 (proven by addba... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_a88ba26300af_1 | 5e52eeab4035b76a | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/DivAddbackCarry.lean | DivAddbackCarry | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 1 | [
{
"theorem_name": "addback_limb_nat_word_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 58,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro uPlusCarry uNew ac1 ac2 carryOut\n have h_excl := addback_carries_exclusive u_i v_i carryIn hci\n have h_... | [
{
"name": "addback_carries_exclusive",
"text": "/-- Helper: the two overflow flags from the two-step addition can't both be 1.\n If the first addition overflows (u + carryIn ≥ 2^64), the intermediate\n result is small, so the second addition (intermediate + v) can't also overflow\n when the total c... | [
{
"name": "addback_register_4limb_val256",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 51,
"n_chars": 2191,
"n_subproofs": 6,
"n_tactics": 15,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,... | 3 | /-
EvmAsm.Evm64.EvmWordArith.DivAddbackCarry
Register-level addback carry bridge: connects the per-limb addback
operations (two-step ADD with OR carry) to the Nat-level addition
equation needed by `addback_4limb_val256`.
Key results:
- or_toNat_eq_add_of_le_one: OR = ADD for {0,1}-valued Words
- addback... | /-
EvmAsm.Evm64.EvmWordArith.DivAddbackCarry
Register-level addback carry bridge: connects the per-limb addback
operations (two-step ADD with OR carry) to the Nat-level addition
equation needed by `addback_4limb_val256`.
Key results:
- or_toNat_eq_add_of_le_one: OR = ADD for {0,1}-valued Words
- addback... | @@ -45,6 +45,72 @@
-- Per-limb addback with Word OR carry
-- ============================================================================
+/-- Helper: the two overflow flags from the two-step addition can't both be 1.
+ If the first addition overflows (u + carryIn ≥ 2^64), the intermediate
+ result is small, ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_01091a16396f_0 | ce82a03000ad79bd | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Calldata/LoadSpec.lean | LoadSpec | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 11 | 4 | [
{
"theorem_name": "calldataload_out_limb0",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have h_nat : offsetWord.toNat = (offsetWord.getLimbN 0).toNat :=\n toNat_eq_getLimbN0_toNat_of_upper_or_zero h_up... | [
{
"name": "calldataload_window_word_eq",
"text": "/-- The window output word at the decoded offset argument is the pure\n CALLDATALOAD semantics. -/\nprivate theorem calldataload_window_word_eq\n (data : List (BitVec 8)) (offsetWord : EvmWord) :\n calldataLoadWindowOutputWordFromArgs data\n ... | [
{
"name": "calldataload_out_limb0",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 18,
"n_chars": 904,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": false,
"max... | 1 | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | @@ -45,6 +45,16 @@
/-! ## Pure plumbing -/
+/-- The window output word at the decoded offset argument is the pure
+ CALLDATALOAD semantics. -/
+private theorem calldataload_window_word_eq
+ (data : List (BitVec 8)) (offsetWord : EvmWord) :
+ calldataLoadWindowOutputWordFromArgs data
+ (CallDataLoad... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_01091a16396f_1 | 2fa5e5baffd04ffc | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Calldata/LoadSpec.lean | LoadSpec | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 11 | 4 | [
{
"theorem_name": "calldataload_out_limb0",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have h_nat : offsetWord.toNat = (offsetWord.getLimbN 0).toNat :=\n toNat_eq_getLimbN0_toNat_of_upper_or_zero h_up... | [
{
"name": "calldataload_window_word_eq",
"text": "/-- The window output word at the decoded offset argument is the pure\n CALLDATALOAD semantics. -/\nprivate theorem calldataload_window_word_eq\n (data : List (BitVec 8)) (offsetWord : EvmWord) :\n calldataLoadWindowOutputWordFromArgs data\n ... | [
{
"name": "calldataload_out_limb1",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 15,
"n_chars": 718,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": false,
"max... | 1 | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | @@ -45,12 +45,29 @@
/-! ## Pure plumbing -/
+/-- The window output word at the decoded offset argument is the pure
+ CALLDATALOAD semantics. -/
+private theorem calldataload_window_word_eq
+ (data : List (BitVec 8)) (offsetWord : EvmWord) :
+ calldataLoadWindowOutputWordFromArgs data
+ (CallDataLoa... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_01091a16396f_2 | 5136869566e465cb | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Calldata/LoadSpec.lean | LoadSpec | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 11 | 4 | [
{
"theorem_name": "calldataload_out_limb0",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have h_nat : offsetWord.toNat = (offsetWord.getLimbN 0).toNat :=\n toNat_eq_getLimbN0_toNat_of_upper_or_zero h_up... | [
{
"name": "calldataload_window_word_eq",
"text": "/-- The window output word at the decoded offset argument is the pure\n CALLDATALOAD semantics. -/\nprivate theorem calldataload_window_word_eq\n (data : List (BitVec 8)) (offsetWord : EvmWord) :\n calldataLoadWindowOutputWordFromArgs data\n ... | [
{
"name": "calldataload_out_limb2",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 15,
"n_chars": 717,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": false,
"max... | 1 | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | @@ -45,12 +45,29 @@
/-! ## Pure plumbing -/
+/-- The window output word at the decoded offset argument is the pure
+ CALLDATALOAD semantics. -/
+private theorem calldataload_window_word_eq
+ (data : List (BitVec 8)) (offsetWord : EvmWord) :
+ calldataLoadWindowOutputWordFromArgs data
+ (CallDataLoa... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_01091a16396f_3 | fc9296b1078dbe7b | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Calldata/LoadSpec.lean | LoadSpec | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 11 | 4 | [
{
"theorem_name": "calldataload_out_limb0",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have h_nat : offsetWord.toNat = (offsetWord.getLimbN 0).toNat :=\n toNat_eq_getLimbN0_toNat_of_upper_or_zero h_up... | [
{
"name": "calldataload_window_word_eq",
"text": "/-- The window output word at the decoded offset argument is the pure\n CALLDATALOAD semantics. -/\nprivate theorem calldataload_window_word_eq\n (data : List (BitVec 8)) (offsetWord : EvmWord) :\n calldataLoadWindowOutputWordFromArgs data\n ... | [
{
"name": "calldataload_out_limb3",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 15,
"n_chars": 717,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": false,
"max... | 1 | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | @@ -45,12 +45,29 @@
/-! ## Pure plumbing -/
+/-- The window output word at the decoded offset argument is the pure
+ CALLDATALOAD semantics. -/
+private theorem calldataload_window_word_eq
+ (data : List (BitVec 8)) (offsetWord : EvmWord) :
+ calldataLoadWindowOutputWordFromArgs data
+ (CallDataLoa... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_01091a16396f_4 | 9f08e1f5459c7fa8 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Calldata/LoadSpec.lean | LoadSpec | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 11 | 1 | [
{
"theorem_name": "calldataload_merged_spec_within",
"depth": 1,
"n_commands": 0,
"n_lines": 181,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n -- The dispatch branch, framed with the window scratch registers and\n -- the calldata region.\n have h... | [
{
"name": "calldataload_out_limb2",
"text": "private theorem calldataload_out_limb2\n (data : List (BitVec 8)) (offsetWord : EvmWord)\n (h_upper : offsetWord.getLimbN 1 ||| offsetWord.getLimbN 2 |||\n offsetWord.getLimbN 3 = 0) :\n calldataloadOutputLimb data (offsetWord.getLimbN 0).toNat 8 =\... | [
{
"name": "calldataload_merged_spec_within",
"fan_in": 1,
"n_deps_direct": 9,
"n_deps_transitive": 10,
"n_lines": 210,
"n_chars": 11044,
"n_subproofs": 14,
"n_tactics": 176,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 10,
"n_structural": 13,
"automation_only... | 10 | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | @@ -100,6 +100,20 @@
simp only [CallDataLoadArgs.windowByteFromArgs_eq,
CallDataLoadArgs.loadArgs_offset, Nat.add_assoc, Nat.reduceAdd]
+private theorem calldataload_out_limb2
+ (data : List (BitVec 8)) (offsetWord : EvmWord)
+ (h_upper : offsetWord.getLimbN 1 ||| offsetWord.getLimbN 2 |||
+ offset... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_01091a16396f_5 | bb0dcfdf4569ed72 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Calldata/LoadSpec.lean | LoadSpec | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 11 | 1 | [
{
"theorem_name": "calldataload_merged_spec_within",
"depth": 1,
"n_commands": 0,
"n_lines": 181,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n -- The dispatch branch, framed with the window scratch registers and\n -- the calldata region.\n have h... | [
{
"name": "calldataload_out_limb3",
"text": "private theorem calldataload_out_limb3\n (data : List (BitVec 8)) (offsetWord : EvmWord)\n (h_upper : offsetWord.getLimbN 1 ||| offsetWord.getLimbN 2 |||\n offsetWord.getLimbN 3 = 0) :\n calldataloadOutputLimb data (offsetWord.getLimbN 0).toNat 0 =\... | [
{
"name": "evm_calldataload_stack_spec_within",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 11,
"n_lines": 70,
"n_chars": 3602,
"n_subproofs": 2,
"n_tactics": 21,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 5,
"n_structural": 1,
"automation_only": ... | 11 | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | /-
EvmAsm.Evm64.Calldata.LoadSpec
The public CALLDATALOAD stack spec (GH #104): zero arm, dispatch/arm
merge, and the top-level `evm_calldataload_stack_spec_within` — THE
registry witness for the CALLDATALOAD `.proven` flip.
Layers:
* `calldataload_zero_arm_spec_within` — the 4 `SD x0` stores of the
... | @@ -114,6 +114,20 @@
simp only [CallDataLoadArgs.windowByteFromArgs_eq,
CallDataLoadArgs.loadArgs_offset, Nat.add_assoc, Nat.reduceAdd]
+private theorem calldataload_out_limb3
+ (data : List (BitVec 8)) (offsetWord : EvmWord)
+ (h_upper : offsetWord.getLimbN 1 ||| offsetWord.getLimbN 2 |||
+ offset... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_00b202d87f4d_0 | ddd463555765330d | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/LoopBody/MulsubCorrectionSkip.lean | MulsubCorrectionSkip | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 3 | [
{
"theorem_name": "divK_mulsub_correction_skip_v4_spec_within",
"depth": 1,
"n_commands": 0,
"n_lines": 49,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hborrow\n have MS := divK_mulsub_full_v4_spec_within sp qHat j v0 v1 v2 v3 u0 u1 u2 u3 u... | [
{
"name": "n4McaNamedSkipPost_unfold",
"text": "theorem n4McaNamedSkipPost_unfold\n {sp qHat j v0 v1 v2 v3 u0 u1 u2 u3 uTop : Word} :\n n4McaNamedSkipPost sp qHat j v0 v1 v2 v3 u0 u1 u2 u3 uTop =\n (let uBase := sp + signExtend12 4056 - j <<< (3 : BitVec 6).toNat\n let ms := mulsubN4 qHa... | [
{
"name": "divK_mulsub_correction_skip_v4_spec_within",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 62,
"n_chars": 2497,
"n_subproofs": 2,
"n_tactics": 52,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 5,
"n_structural": 2,
"automation_... | 1 | /-
EvmAsm.Evm64.DivMod.LoopBody.MulsubCorrectionSkip
Extracted from `LoopBody.lean` (Section 10).
Mulsub + correction_skip composition (borrow = 0 path):
when mulsub produces borrow=0, skip addback. Takes borrow as an explicit
parameter (not let-bound) to enable rw.
Uses public helpers from `LoopBody.lea... | /-
EvmAsm.Evm64.DivMod.LoopBody.MulsubCorrectionSkip
Extracted from `LoopBody.lean` (Section 10).
Mulsub + correction_skip composition (borrow = 0 path):
when mulsub produces borrow=0, skip addback. Takes borrow as an explicit
parameter (not let-bound) to enable rw.
Uses public helpers from `LoopBody.lea... | @@ -62,6 +62,25 @@
((sp + signExtend12 56) ↦ₘ v3) ** ((uBase + signExtend12 4072) ↦ₘ ms.2.2.2.1) **
((uBase + signExtend12 4064) ↦ₘ u4_new)
+theorem n4McaNamedSkipPost_unfold
+ {sp qHat j v0 v1 v2 v3 u0 u1 u2 u3 uTop : Word} :
+ n4McaNamedSkipPost sp qHat j v0 v1 v2 v3 u0 u1 u2 u3 uTop =
+ (let uBase... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_00b202d87f4d_1 | dceea559b25569b9 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/LoopBody/MulsubCorrectionSkip.lean | MulsubCorrectionSkip | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 1 | [
{
"theorem_name": "divK_mulsub_correction_skip_v4_spec_within_noNop",
"depth": 1,
"n_commands": 0,
"n_lines": 49,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hborrow\n have MS := divK_mulsub_full_v4_spec_within_noNop sp qHat j v0 v1 v2 v3 u... | [
{
"name": "divK_mulsub_full_v4_spec_within_noNop",
"text": "theorem divK_mulsub_full_v4_spec_within_noNop\n (sp qHat j v0 v1 v2 v3 u0 u1 u2 u3 uTop : Word)\n (v9Old v5Old v6Old v7Old v10Old v2Old : Word) (base : Word) :\n cpsTripleWithin 53 (base + div128CallRetOff) (base + correctionSkipBeqOff) (s... | [
{
"name": "divK_mulsub_correction_skip_v4_spec_within_noNop",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 62,
"n_chars": 2532,
"n_subproofs": 2,
"n_tactics": 52,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 5,
"n_structural": 2,
"autom... | 2 | /-
EvmAsm.Evm64.DivMod.LoopBody.MulsubCorrectionSkip
Extracted from `LoopBody.lean` (Section 10).
Mulsub + correction_skip composition (borrow = 0 path):
when mulsub produces borrow=0, skip addback. Takes borrow as an explicit
parameter (not let-bound) to enable rw.
Uses public helpers from `LoopBody.lea... | /-
EvmAsm.Evm64.DivMod.LoopBody.MulsubCorrectionSkip
Extracted from `LoopBody.lean` (Section 10).
Mulsub + correction_skip composition (borrow = 0 path):
when mulsub produces borrow=0, skip addback. Takes borrow as an explicit
parameter (not let-bound) to enable rw.
Uses public helpers from `LoopBody.lea... | @@ -81,6 +81,17 @@
((uBase + signExtend12 4064) ↦ₘ u4_new)) := by
delta n4McaNamedSkipPost; rfl
+theorem divK_mulsub_full_v4_spec_within_noNop
+ (sp qHat j v0 v1 v2 v3 u0 u1 u2 u3 uTop : Word)
+ (v9Old v5Old v6Old v7Old v10Old v2Old : Word) (base : Word) :
+ cpsTripleWithin 53 (base + div128CallRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_00b202d87f4d_2 | 0bd109b542767209 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/LoopBody/MulsubCorrectionSkip.lean | MulsubCorrectionSkip | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 1 | [
{
"theorem_name": "divK_mulsub_correction_skip_named_spec_within_noNop",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro uBase c3 hborrow\n exact cpsTripleWithin_weaken\n (fun h hp => hp)\n (fun ... | [
{
"name": "divK_mulsub_correction_skip_spec_within_noNop",
"text": "/-- No-NOP variant of `divK_mulsub_correction_skip_spec_within`.\n\n Entry: base+516, Exit: base+880, CodeReq: `divCode_noNop base`. -/\ntheorem divK_mulsub_correction_skip_spec_within_noNop\n (sp qHat j v0 v1 v2 v3 u0 u1 u2 u3 uTop :... | [
{
"name": "divK_mulsub_correction_skip_named_spec_within_noNop",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 32,
"n_chars": 1808,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 3,
"aut... | 2 | /-
EvmAsm.Evm64.DivMod.LoopBody.MulsubCorrectionSkip
Extracted from `LoopBody.lean` (Section 10).
Mulsub + correction_skip composition (borrow = 0 path):
when mulsub produces borrow=0, skip addback. Takes borrow as an explicit
parameter (not let-bound) to enable rw.
Uses public helpers from `LoopBody.lea... | /-
EvmAsm.Evm64.DivMod.LoopBody.MulsubCorrectionSkip
Extracted from `LoopBody.lean` (Section 10).
Mulsub + correction_skip composition (borrow = 0 path):
when mulsub produces borrow=0, skip addback. Takes borrow as an explicit
parameter (not let-bound) to enable rw.
Uses public helpers from `LoopBody.lea... | @@ -81,6 +81,81 @@
((uBase + signExtend12 4064) ↦ₘ u4_new)) := by
delta n4McaNamedSkipPost; rfl
+/-- No-NOP variant of `divK_mulsub_correction_skip_spec_within`.
+
+ Entry: base+516, Exit: base+880, CodeReq: `divCode_noNop base`. -/
+theorem divK_mulsub_correction_skip_spec_within_noNop
+ (sp qHat j ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_0 | 9231049543104744 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "retSpecFlatAmbient",
"depth": 1,
"n_commands": 0,
"n_lines": 18,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hr := Fn.retSpec f base hspec hsz ret halign\n refine cpsTripleWithin_weaken (fun h hp => ?_) (fun h hq => ?_) hr... | [
{
"name": "asrtOf_intro_ambient",
"text": "private theorem asrtOf_intro_ambient (rw : RwRegion) (reach : Reach)\n (rf : RegFile) (ws : List (BitVec 8)) (A : Assertion)\n (hlen : ws.length = rw.len) (hApc : A.pcFree) (hreach : reach rf ws A) :\n ∀ hp, (((regFileIs rf) ** bytesRegion rw.base ws) ** A... | [
{
"name": "retSpecFlatAmbient",
"fan_in": 2,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 33,
"n_chars": 1692,
"n_subproofs": 4,
"n_tactics": 18,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 3,
"n_structural": 2,
"automation_only": false,
"max_n... | 2 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -101,6 +101,14 @@
-- Local flat adapter for callees whose `Fn` post preserves ambient assertions.
-- ============================================================================
+private theorem asrtOf_intro_ambient (rw : RwRegion) (reach : Reach)
+ (rf : RegFile) (ws : List (BitVec 8)) (A : Assertion)
+ (... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_1 | 56deff530fdf9ee7 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "ltSetupCall_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 66,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold globalConst\n have hsetup := ltSetup_spec src dst ret v8 v9 v12\n have hsetupF := cpsTripleWithin_frameR\n ((... | [
{
"name": "u256LtBeInCr_spec",
"text": "private theorem u256LtBeInCr_spec (aPtr bPtr outPtr ret : Word)\n (as bs : List (BitVec 8))\n (hlenA : as.length = 32) (hlenB : bs.length = 32)\n (halignA : aPtr.toNat % 8 = 0) (halignB : bPtr.toNat % 8 = 0)\n (hovA : aPtr.toNat + 32 < 2 ^ 64) (hovB : bPtr... | [
{
"name": "ltSetupCall_spec",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 3,
"n_lines": 96,
"n_chars": 5481,
"n_subproofs": 7,
"n_tactics": 67,
"cyclomatic": 1,
"n_automation": 7,
"n_rewrites": 4,
"n_structural": 2,
"automation_only": false,
"max_nes... | 3 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -172,6 +172,32 @@
exact cpsTripleWithin_weaken (fun _ hp => by xperm_hyp hp)
(fun _ hq => by xperm_hyp hq) c4
+private theorem u256LtBeInCr_spec (aPtr bPtr outPtr ret : Word)
+ (as bs : List (BitVec 8))
+ (hlenA : as.length = 32) (hlenB : bs.length = 32)
+ (halignA : aPtr.toNat % 8 = 0) (halignB :... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_2 | b2037e7f5e7fe98c | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "ltSetupCall_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 66,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold globalConst\n have hsetup := ltSetup_spec src dst ret v8 v9 v12\n have hsetupF := cpsTripleWithin_frameR\n ((... | [
{
"name": "u256LtBeInCr_spec",
"text": "private theorem u256LtBeInCr_spec (aPtr bPtr outPtr ret : Word)\n (as bs : List (BitVec 8))\n (hlenA : as.length = 32) (hlenB : bs.length = 32)\n (halignA : aPtr.toNat % 8 = 0) (halignB : bPtr.toNat % 8 = 0)\n (hovA : aPtr.toNat + 32 < 2 ^ 64) (hovB : bPtr... | [
{
"name": "ltSetupCallLoad_spec",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 42,
"n_chars": 2287,
"n_subproofs": 3,
"n_tactics": 10,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max... | 5 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -172,6 +172,32 @@
exact cpsTripleWithin_weaken (fun _ hp => by xperm_hyp hp)
(fun _ hq => by xperm_hyp hq) c4
+private theorem u256LtBeInCr_spec (aPtr bPtr outPtr ret : Word)
+ (as bs : List (BitVec 8))
+ (hlenA : as.length = 32) (hlenB : bs.length = 32)
+ (halignA : aPtr.toNat % 8 = 0) (halignB :... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_3 | 24a5d8e953e6243f | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "ltSetupCall_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 66,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold globalConst\n have hsetup := ltSetup_spec src dst ret v8 v9 v12\n have hsetupF := cpsTripleWithin_frameR\n ((... | [
{
"name": "secp256k1PByte_valid",
"text": "private theorem secp256k1PByte_valid (k : Nat) (hk : k < 32) :\n isValidByteAccess ((GuestAddrs.secp256k1_p_be : Word) + BitVec.ofNat 64 k) = true := by\n interval_cases k <;> decide\n\n",
"fan_in": 1,
"n_lines": 5,
"n_chars": 186,
"n_subproofs"... | [
{
"name": "ltSetupCallLoadBranch_spec",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 7,
"n_lines": 55,
"n_chars": 3284,
"n_subproofs": 2,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
... | 7 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -198,6 +198,10 @@
halignA halignB hovA hovB hvalidA hvalidB halignRet
exact liftCode (cr' := secfReduceOnceCr) h (by unfold secfReduceOnceCr; code_mem)
+private theorem secp256k1PByte_valid (k : Nat) (hk : k < 32) :
+ isValidByteAccess ((GuestAddrs.secp256k1_p_be : Word) + BitVec.ofNat 64 k) = true := b... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_4 | 4a50d020d3f235db | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 2 | [
{
"theorem_name": "x11_copyScratch_to_retScratch",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h hp\n rw [copyScratch_eq_x5_rest] at hp\n have hp1 : (regOwn .x11 ** (regOwn .x5 ** regOwns copyRest... | [
{
"name": "copyScratch_eq_x5_rest",
"text": "private theorem copyScratch_eq_x5_rest :\n regOwns copyScratch = (regOwn .x5 ** regOwns copyRest) := by\n simp only [copyScratch, copyRest, regOwns_cons, regOwns_nil]\n\n",
"fan_in": 2,
"n_lines": 5,
"n_chars": 170,
"n_subproofs": 0,
"n_ta... | [
{
"name": "x11_copyScratch_to_retScratch",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 446,
"n_subproofs": 1,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 2,
"automation_only": false,
... | 1 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -117,8 +117,18 @@
def retScratch : List Reg :=
[.x5, .x6, .x7, .x28, .x29, .x30, .x31, .x11, .x12, .x13, .x14, .x15, .x16, .x17]
+private theorem copyScratch_eq_x5_rest :
+ regOwns copyScratch = (regOwn .x5 ** regOwns copyRest) := by
+ simp only [copyScratch, copyRest, regOwns_cons, regOwns_nil]
+
private... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_5 | ef79d2f20fbd7cef | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "copySetupCall_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 31,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hsetup := copySetup_spec src dst ret old10 old11\n have hsetupF := cpsTripleWithin_frameR\n (regOwn .x5 ** byt... | [
{
"name": "secfCopy32Direct_spec",
"text": "theorem secfCopy32Direct_spec (ret src dst : Word)\n (srcBytes orig : List (BitVec 8))\n (hlenSrc : srcBytes.length = 32) (hlenOrig : orig.length = 32)\n (halign : (ret &&& ~~~(1 : Word)) = ret) :\n cpsTripleWithin 9 (GuestAddrs.secf_copy32 : Word) ret... | [
{
"name": "copySetupCall_spec",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 46,
"n_chars": 2896,
"n_subproofs": 7,
"n_tactics": 32,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 3,
"n_structural": 2,
"automation_only": false,
"max_n... | 2 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -120,6 +120,41 @@
/-- High exposed scratch registers not materialized by the compare prefix. -/
def highScratch : List Reg := [.x31, .x13, .x14, .x15, .x16, .x17]
+theorem secfCopy32Direct_spec (ret src dst : Word)
+ (srcBytes orig : List (BitVec 8))
+ (hlenSrc : srcBytes.length = 32) (hlenOrig : orig.leng... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_6 | 7a524320d0ff8b6a | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 2 | [
{
"theorem_name": "x11_copyScratch_to_retScratch",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h hp\n rw [copyScratch_eq_x5_rest] at hp\n have hp1 : (regOwn .x11 ** (regOwn .x5 ** regOwns copyRest... | [
{
"name": "copyScratch_eq_x5_rest",
"text": "private theorem copyScratch_eq_x5_rest :\n regOwns copyScratch = (regOwn .x5 ** regOwns copyRest) := by\n simp only [copyScratch, copyRest, regOwns_cons, regOwns_nil]\n\n",
"fan_in": 2,
"n_lines": 5,
"n_chars": 170,
"n_subproofs": 0,
"n_ta... | [
{
"name": "copySetupCallFull_spec",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 23,
"n_chars": 1191,
"n_subproofs": 2,
"n_tactics": 9,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 1,
"automation_only": false,
"ma... | 4 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -117,6 +117,10 @@
def retScratch : List Reg :=
[.x5, .x6, .x7, .x28, .x29, .x30, .x31, .x11, .x12, .x13, .x14, .x15, .x16, .x17]
+private theorem copyScratch_eq_x5_rest :
+ regOwns copyScratch = (regOwn .x5 ** regOwns copyRest) := by
+ simp only [copyScratch, copyRest, regOwns_cons, regOwns_nil]
+
/-- Hig... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_7 | a08673bb93327e75 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 2 | [
{
"theorem_name": "x11_copyScratch_to_retScratch",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h hp\n rw [copyScratch_eq_x5_rest] at hp\n have hp1 : (regOwn .x11 ** (regOwn .x5 ** regOwns copyRest... | [
{
"name": "copyScratch_eq_x5_rest",
"text": "private theorem copyScratch_eq_x5_rest :\n regOwns copyScratch = (regOwn .x5 ** regOwns copyRest) := by\n simp only [copyScratch, copyRest, regOwns_cons, regOwns_nil]\n\n",
"fan_in": 2,
"n_lines": 5,
"n_chars": 170,
"n_subproofs": 0,
"n_ta... | [
{
"name": "copyRetTail_spec",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 32,
"n_chars": 1646,
"n_subproofs": 3,
"n_tactics": 25,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 3,
"n_structural": 7,
"automation_only": false,
"max_nes... | 2 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -117,8 +117,18 @@
def retScratch : List Reg :=
[.x5, .x6, .x7, .x28, .x29, .x30, .x31, .x11, .x12, .x13, .x14, .x15, .x16, .x17]
+private theorem copyScratch_eq_x5_rest :
+ regOwns copyScratch = (regOwn .x5 ** regOwns copyRest) := by
+ simp only [copyScratch, copyRest, regOwns_cons, regOwns_nil]
+
private... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_8 | 811bf34bd2605875 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "copySetupCall_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 31,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hsetup := copySetup_spec src dst ret old10 old11\n have hsetupF := cpsTripleWithin_frameR\n (regOwn .x5 ** byt... | [
{
"name": "secfCopy32Direct_spec",
"text": "theorem secfCopy32Direct_spec (ret src dst : Word)\n (srcBytes orig : List (BitVec 8))\n (hlenSrc : srcBytes.length = 32) (hlenOrig : orig.length = 32)\n (halign : (ret &&& ~~~(1 : Word)) = ret) :\n cpsTripleWithin 9 (GuestAddrs.secf_copy32 : Word) ret... | [
{
"name": "copyArm_spec",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 7,
"n_lines": 22,
"n_chars": 1231,
"n_subproofs": 3,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nesting"... | 7 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -133,6 +133,41 @@
/-- High exposed scratch registers not materialized by the compare prefix. -/
def highScratch : List Reg := [.x31, .x13, .x14, .x15, .x16, .x17]
+theorem secfCopy32Direct_spec (ret src dst : Word)
+ (srcBytes orig : List (BitVec 8))
+ (hlenSrc : srcBytes.length = 32) (hlenOrig : orig.leng... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_9 | 87980928263389f5 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "retSpecFlatAmbient",
"depth": 1,
"n_commands": 0,
"n_lines": 18,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hr := Fn.retSpec f base hspec hsz ret halign\n refine cpsTripleWithin_weaken (fun h hp => ?_) (fun h hq => ?_) hr... | [
{
"name": "asrtOf_elim_ambient",
"text": "private theorem asrtOf_elim_ambient (rw : RwRegion) (reach : Reach) {Q : Assertion}\n (h : ∀ (rf : RegFile) (ws : List (BitVec 8)) (A : Assertion),\n ws.length = rw.len → A.pcFree → reach rf ws A →\n ∀ hp, (((regFileIs rf) ** bytesRegion rw.base ws) ** ... | [
{
"name": "secfCopy32FlatAsrt_spec",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 29,
"n_chars": 1655,
"n_subproofs": 1,
"n_tactics": 16,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 4,
"n_structural": 2,
"automation_only": false,
"... | 3 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -109,6 +109,14 @@
intro hp hh
exact ⟨rf, ws, A, hlen, hApc, hreach, hh⟩
+private theorem asrtOf_elim_ambient (rw : RwRegion) (reach : Reach) {Q : Assertion}
+ (h : ∀ (rf : RegFile) (ws : List (BitVec 8)) (A : Assertion),
+ ws.length = rw.len → A.pcFree → reach rf ws A →
+ ∀ hp, (((regFileIs rf) ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_10 | c33e467c206db5d7 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 2 | [
{
"theorem_name": "secfCopy32FlatAsrt_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have had := retSpecFlatAmbient\n (Secp256k1FieldLeavesSAsm.secfCopy32Fn src dst srcBytes orig)\n (GuestAddrs... | [
{
"name": "retSpecFlatAmbient",
"text": "private theorem retSpecFlatAmbient (f : Fn) (base : Word) (hspec : f.Spec base)\n (hsz : 4 * (f.body.size + 1) ≤ 2 ^ 64)\n (ret : Word) (halign : (ret &&& ~~~(1 : Word)) = ret)\n (rf : RegFile) (ws : List (BitVec 8)) (A : Assertion)\n (hlen : ws.length = ... | [
{
"name": "u256SubBeFlat_spec",
"fan_in": 1,
"n_deps_direct": 5,
"n_deps_transitive": 7,
"n_lines": 108,
"n_chars": 6377,
"n_subproofs": 6,
"n_tactics": 91,
"cyclomatic": 1,
"n_automation": 26,
"n_rewrites": 30,
"n_structural": 13,
"automation_only": false,
"m... | 7 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -117,6 +117,38 @@
rintro hp ⟨rf, ws, A, hlen, hApc, hreach, hsts⟩
exact h rf ws A hlen hApc hreach hp hsts
+private theorem retSpecFlatAmbient (f : Fn) (base : Word) (hspec : f.Spec base)
+ (hsz : 4 * (f.body.size + 1) ≤ 2 ^ 64)
+ (ret : Word) (halign : (ret &&& ~~~(1 : Word)) = ret)
+ (rf : RegFile... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_11 | aff23eaeb4158128 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 2 | [
{
"theorem_name": "secfCopy32FlatAsrt_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have had := retSpecFlatAmbient\n (Secp256k1FieldLeavesSAsm.secfCopy32Fn src dst srcBytes orig)\n (GuestAddrs... | [
{
"name": "retSpecFlatAmbient",
"text": "private theorem retSpecFlatAmbient (f : Fn) (base : Word) (hspec : f.Spec base)\n (hsz : 4 * (f.body.size + 1) ≤ 2 ^ 64)\n (ret : Word) (halign : (ret &&& ~~~(1 : Word)) = ret)\n (rf : RegFile) (ws : List (BitVec 8)) (A : Assertion)\n (hlen : ws.length = ... | [
{
"name": "subSetupCall_spec",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 9,
"n_lines": 73,
"n_chars": 4437,
"n_subproofs": 7,
"n_tactics": 48,
"cyclomatic": 1,
"n_automation": 6,
"n_rewrites": 4,
"n_structural": 2,
"automation_only": false,
"max_ne... | 9 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -117,6 +117,38 @@
rintro hp ⟨rf, ws, A, hlen, hApc, hreach, hsts⟩
exact h rf ws A hlen hApc hreach hp hsts
+private theorem retSpecFlatAmbient (f : Fn) (base : Word) (hspec : f.Spec base)
+ (hsz : 4 * (f.body.size + 1) ≤ 2 ^ 64)
+ (ret : Word) (halign : (ret &&& ~~~(1 : Word)) = ret)
+ (rf : RegFile... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_12 | 858d6e2c5ac38d89 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "subRetTail_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 57,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n refine cpsTripleWithin_weaken (fun _ hp => by xperm_hyp hp) (fun _ hq => hq)\n (cpsTripleWithin_peel_regOwns exposedReg... | [
{
"name": "exposedRegs_split_ret",
"text": "/-- Split the exposed register file around return register `a0`. -/\nprivate theorem exposedRegs_split_ret (vf : Reg → Word) :\n regAtomsOf vf exposedRegs = ((.x10 ↦ᵣ vf .x10) ** regAtomsOf vf retScratch) := by\n show regAtomsOf vf\n [.x5, .x6, .x7, .x28,... | [
{
"name": "subRetTail_spec",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 65,
"n_chars": 3490,
"n_subproofs": 8,
"n_tactics": 59,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 11,
"n_structural": 13,
"automation_only": false,
"max_ne... | 1 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -120,13 +120,78 @@
/-- High exposed scratch registers not materialized by the compare prefix. -/
def highScratch : List Reg := [.x31, .x13, .x14, .x15, .x16, .x17]
+/-- Split the exposed register file around return register `a0`. -/
+private theorem exposedRegs_split_ret (vf : Reg → Word) :
+ regAtomsOf vf ex... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb1184d17b53_13 | b3fe10fd02eda071 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Codegen/Programs/Secp256k1FieldReduceOnceSAsmSupport.lean | Secp256k1FieldReduceOnceSAsmSupport | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "u256SubBeFlat_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 89,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n refine cpsTripleWithin_weaken (fun _ hp => by xperm_hyp hp) (fun _ hq => hq)\n (cpsTripleWithin_peel_regOwns subScra... | [
{
"name": "x10_notin_subScratch",
"text": "private theorem x10_notin_subScratch : (.x10 : Reg) ∉ subScratch := by decide\n",
"fan_in": 1,
"n_lines": 2,
"n_chars": 80,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,... | [
{
"name": "subArm_spec",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 12,
"n_lines": 37,
"n_chars": 2135,
"n_subproofs": 3,
"n_tactics": 11,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nesting... | 12 | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | /-
EvmAsm.Codegen.Programs.Secp256k1FieldReduceOnceSAsm
SAsm/CPS port scaffold for `secf_reduce_once`: reduce a 32-byte
big-endian secp256k1 field element by subtracting p at most once.
The emitted routine is an ABI-frame caller over three verified callees:
`u256_lt_be`, `u256_sub_be`, and `secf_copy32`, wi... | @@ -168,6 +168,7 @@
/-- High exposed scratch registers not materialized by the compare prefix. -/
def highScratch : List Reg := [.x31, .x13, .x14, .x15, .x16, .x17]
+private theorem x10_notin_subScratch : (.x10 : Reg) ∉ subScratch := by decide
private theorem x11_notin_subScratch : (.x11 : Reg) ∉ subScratch := by ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_0 | d111ee38bdaf9899 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_eq_some_iff",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 47,
"n_chars": 1761,
"n_subproofs": 0,
"n_tactics": 26,
"cyclomatic": 8,
"n_automation": 6,
"n_rewrites": 2,
"n_structural": 10,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,6 +50,19 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRes... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_1 | 007b3e775ae19d79 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "runExpStack?_effects_stackWords_ne_nil",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have h_len := runExpStack?_effects_stackWords_length h_run\n intro h_nil\n rw [h_nil] at h_len\n ... | [
{
"name": "runExpStack?_effects_stackWords_length",
"text": "theorem runExpStack?_effects_stackWords_length\n {state : ExpStackState} {out : ExpStackResult}\n (h_run : runExpStack? state = some out) :\n out.effects.stackWords.length = resultCount := by\n cases state with\n | mk stack =>\n ca... | [
{
"name": "runExpStack?_effects_stackWords_ne_nil",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 333,
"n_subproofs": 1,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 1,
"automation_only":... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,10 +50,31 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_effects_stackWords_length
+ {state : ExpStackState} {out : ExpStackResult}
+ (h_run : runExpStack? state = some out) :
+ out.effects.stackWords.length = resultCount := by
+ cases state ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_2 | 1fe3d56a75200e63 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_head?_of_some",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 11,
"n_chars": 384,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,11 +50,28 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_3 | 417e8a072e7c3bff | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_stackWords_of_some",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 11,
"n_chars": 378,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": false,... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,11 +50,28 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_4 | db4b3a1dc6056271 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_tail_of_some",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 298,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": false,
"... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,10 +50,27 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_5 | 9add28492bcc614e | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "runExpStack?_semantic_stack_after",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [runExpStack?_stackAfterExp]\n rfl",
"n_chars": 43,
"n_subproofs": 0,
"n_tactics": 3,
... | [
{
"name": "runExpStack?_stackAfterExp",
"text": "theorem runExpStack?_stackAfterExp\n (base exponent : EvmWord) (rest : List EvmWord) :\n (runExpStack? { stack := base :: exponent :: rest }).map\n (fun out => out.effects.stackWords ++ out.stack) =\n some (ExpArgs.stackAfterExp (ExpArgs.expAr... | [
{
"name": "runExpStack?_semantic_stack_after",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 11,
"n_chars": 438,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": fals... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,13 +50,21 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_stackAfterExp
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ (runExpStack? { stack := base :: exponent :: rest }).map
+ (fun out => out.effects.stackWords ++ out.stack) =
+ ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_6 | 6dfba3f399f94fcb | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_semantic_cons",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 16,
"n_chars": 576,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,6 +50,19 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRes... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_7 | 12917d7ba7b7e3ac | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_dynamicGas_of_some",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 11,
"n_chars": 381,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": false,... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,11 +50,28 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_8 | 2a1a5d643e3327b4 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_totalGas_of_some",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 11,
"n_chars": 374,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,11 +50,28 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_9 | 036f86cc7fff4135 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_totalGas_eq_dynamicGas_add_static",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 12,
"n_chars": 474,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 1,
"automatio... | 2 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,6 +50,19 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRes... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_10 | 83a292159359645a | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_zero_exponent",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 12,
"n_chars": 420,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 4,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,12 +50,29 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_11 | 56f5a969428ed596 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_zero_zero",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 9,
"n_chars": 280,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_... | 2 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,12 +50,29 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_12 | a16a8ca6f9476c01 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_max_zero_exponent",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 9,
"n_chars": 302,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
... | 2 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,12 +50,29 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_13 | 8357adea3071bf69 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_one_exponent",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 12,
"n_chars": 420,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 4,
"n_structural": 0,
"automation_only": false,
"... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,12 +50,29 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_14 | f63b7ff9d595ff35 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_two_one",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 9,
"n_chars": 278,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_ne... | 2 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,12 +50,29 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_15 | 882286338c5d110b | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 15 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_zero_one",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 9,
"n_chars": 279,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_n... | 2 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,12 +50,29 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_16 | e22660a712fcccc2 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 16 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_max_one_exponent",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 9,
"n_chars": 314,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
... | 2 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,12 +50,29 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_17 | 411d067bfc5d92f1 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 17 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_one_left",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 15,
"n_chars": 514,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": false,
"max_... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,6 +50,19 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRes... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_18 | ded055740cc50a80 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 18 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_zero_left_of_ne_zero",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 16,
"n_chars": 580,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": fals... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,6 +50,19 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRes... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_19 | 76ae58f0ec632ecb | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 19 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_zero_left_of_toNat_pos",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 16,
"n_chars": 590,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": fa... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,6 +50,19 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRes... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_20 | 189cd803913cea3c | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 20 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_two_64",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 17,
"n_chars": 625,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 4,
"n_structural": 0,
"automation_only": false,
"max_ne... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,6 +50,19 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRes... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_21 | 01c6001c85faff7b | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 21 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_two_256",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 12,
"n_chars": 406,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 4,
"n_structural": 0,
"automation_only": false,
"max_n... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,12 +50,29 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_22 | beda378a2e629336 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 22 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_two_128",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 17,
"n_chars": 629,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 4,
"n_structural": 0,
"automation_only": false,
"max_n... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,6 +50,19 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRes... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_23 | e55fcefeda9e8a44 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 23 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_two_255",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 17,
"n_chars": 629,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 4,
"n_structural": 0,
"automation_only": false,
"max_n... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,6 +50,19 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRes... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_24 | 8aa7b3b802e50f89 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 24 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "runExpStack?_max_exponent_gas",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [runExpStack?_gas]\n rw [ExpArgs.expDynamicCostFromArgs_max_exponent]\n rw [ExpArgs.expTotalGasFromArgs_... | [
{
"name": "runExpStack?_gas",
"text": "theorem runExpStack?_gas\n (base exponent : EvmWord) (rest : List EvmWord) :\n (runExpStack? { stack := base :: exponent :: rest }).map\n (fun out => (out.effects.dynamicGas, out.effects.totalGas)) =\n some\n ( ExpArgs.expDynamicCostFromArgs (Exp... | [
{
"name": "runExpStack?_max_exponent_gas",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 372,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 3,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,11 +50,22 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_gas
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ (runExpStack? { stack := base :: exponent :: rest }).map
+ (fun out => (out.effects.dynamicGas, out.effects.totalGas)) =
+ ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_49beb570d025_25 | e9e74f895d32fc84 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/Exp/StackExecutionBridge.lean | StackExecutionBridge | 25 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 17 | [
{
"theorem_name": "runExpStack?_eq_some_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · cases state with\n | mk stack =>\n cases stack with\n | nil =>\n sim... | [
{
"name": "runExpStack?_cons",
"text": "theorem runExpStack?_cons\n (base exponent : EvmWord) (rest : List EvmWord) :\n runExpStack? { stack := base :: exponent :: rest } =\n some\n { effects :=\n { stackWords := [ExpArgs.expResultFromArgs\n (ExpArgs.expArgs base ... | [
{
"name": "runExpStack?_zero_max_exponent",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 13,
"n_chars": 451,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 4,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | /-
EvmAsm.Evm64.Exp.StackExecutionBridge
Pure stack-execution bridge for EXP (GH #92).
-/
import EvmAsm.Evm64.Exp.ArgsStackDecode
namespace EvmAsm.Evm64
namespace ExpStackExecutionBridge
/-- Caller-visible effects of EXP at the executable-spec layer. -/
structure ExpVisibleEffects where
stackWords : List Evm... | @@ -50,12 +50,30 @@
totalGas := ExpArgs.expTotalGasFromArgs args }
stack := rest }
+theorem runExpStack?_cons
+ (base exponent : EvmWord) (rest : List EvmWord) :
+ runExpStack? { stack := base :: exponent :: rest } =
+ some
+ { effects :=
+ { stackWords := [ExpArgs.expRe... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_1e0d67e301ae_0 | 4b0d2f32a618116b | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/DivMod/Compose/FullPathN3V5NoNopDenorm.lean | FullPathN3V5NoNopDenorm | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "evm_div_n3_denorm_epilogue_bundled_spec_v5_noNop_exact_x1_scratch_frame",
"depth": 1,
"n_commands": 0,
"n_lines": 18,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hDenorm := evm_div_n3_denorm_epilogue_bundled_spec_v5_noNop\n... | [
{
"name": "evm_div_n3_denorm_epilogue_bundled_spec_v5_noNop",
"text": "/-- N3 denormalization and DIV epilogue over v5/no-NOP for the v5 callable-trial\n final computation family. -/\ntheorem evm_div_n3_denorm_epilogue_bundled_spec_v5_noNop\n (bltu_1 bltu_0 : Bool)\n (sp base a0 a1 a2 a3 b0 b1 b2 b... | [
{
"name": "evm_div_n3_denorm_epilogue_bundled_spec_v5_noNop_exact_x1_scratch_frame",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 38,
"n_chars": 1710,
"n_subproofs": 2,
"n_tactics": 18,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 2,
"n_str... | 1 | /-
EvmAsm.Evm64.DivMod.Compose.FullPathN3V5NoNopDenorm
The n=3 v5 denormalization-epilogue cpsTriple (denormOff → nopOff), wrapping the
shared v5 denorm code spec `evm_div_preamble_denorm_epilogue_spec_v5_noNop`
(DenormEpilogueV5) for the n=3 callable-trial-v5 quotient/remainder families.
v5 mirror of `evm_d... | /-
EvmAsm.Evm64.DivMod.Compose.FullPathN3V5NoNopDenorm
The n=3 v5 denormalization-epilogue cpsTriple (denormOff → nopOff), wrapping the
shared v5 denorm code spec `evm_div_preamble_denorm_epilogue_spec_v5_noNop`
(DenormEpilogueV5) for the n=3 callable-trial-v5 quotient/remainder families.
v5 mirror of `evm_d... | @@ -18,6 +18,37 @@
open EvmAsm.Rv64.AddrNorm (se12_32 se12_40 se12_48 se12_56)
/-- N3 denormalization and DIV epilogue over v5/no-NOP for the v5 callable-trial
+ final computation family. -/
+theorem evm_div_n3_denorm_epilogue_bundled_spec_v5_noNop
+ (bltu_1 bltu_0 : Bool)
+ (sp base a0 a1 a2 a3 b0 b1 b2 b... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_0 | 208f1922e2b3e457 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 1 | [
{
"theorem_name": "a3_div_b3_ge_val256_div",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hv_b_ge : val256 b0 b1 b2 b3 ≥ 2^255 := by\n show b0.toNat + b1.toNat * 2^64 + b2.toNat * 2^128 + b3.toNat... | [
{
"name": "val256_lt_of_a3_lt_b3",
"text": "/-- Under shift=0 (b3 ≥ 2^63), a3 < b3 implies val256(a) < val256(b). -/\ntheorem val256_lt_of_a3_lt_b3 (a0 a1 a2 a3 b0 b1 b2 b3 : Word)\n (h : a3.toNat < b3.toNat) :\n val256 a0 a1 a2 a3 < val256 b0 b1 b2 b3 := by\n have h_low_bound : a0.toNat + a1.toNat *... | [
{
"name": "a3_div_b3_ge_val256_div",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 42,
"n_chars": 1990,
"n_subproofs": 13,
"n_tactics": 30,
"cyclomatic": 2,
"n_automation": 7,
"n_rewrites": 4,
"n_structural": 4,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -31,6 +31,35 @@
-- Arithmetic bridge lemmas
-- ============================================================================
+/-- Under shift=0 (b3 ≥ 2^63), a3 < b3 implies val256(a) < val256(b). -/
+theorem val256_lt_of_a3_lt_b3 (a0 a1 a2 a3 b0 b1 b2 b3 : Word)
+ (h : a3.toNat < b3.toNat) :
+ val256 a0 a1 ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_1 | f10158de0d90b968 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 3 | [
{
"theorem_name": "div128Quot_shift0_hi1_eq_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [div128Quot_shift0_q1_eq_zero dHi hdHi_ne]\n rfl",
"n_chars": 57,
"n_subproofs": 0,
"n_tactic... | [
{
"name": "div128Quot_shift0_q1_eq_zero",
"text": "/-- Under b3 ≥ 2^63 and uHi=0, Phase 1's q1 is zero. -/\ntheorem div128Quot_shift0_q1_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :\n rv64_divu (0 : Word) dHi = 0 := by\n apply BitVec.eq_of_toNat_eq\n rw [rv64_divu_toNat _ _ hdHi_ne]\n show (0 : Word).to... | [
{
"name": "div128Quot_shift0_hi1_eq_zero",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 7,
"n_chars": 246,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -31,9 +31,19 @@
-- Arithmetic bridge lemmas
-- ============================================================================
+/-- Under b3 ≥ 2^63 and uHi=0, Phase 1's q1 is zero. -/
+theorem div128Quot_shift0_q1_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :
+ rv64_divu (0 : Word) dHi = 0 := by
+ apply BitVec.eq_... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_2 | 08a48d1780e4cb47 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 2 | [
{
"theorem_name": "div128Quot_shift0_q1c_eq_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [div128Quot_shift0_hi1_eq_zero dHi hdHi_ne]\n rw [if_pos rfl]\n exact div128Quot_shift0_... | [
{
"name": "div128Quot_shift0_hi1_eq_zero",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 1's hi1 = 0. -/\ntheorem div128Quot_shift0_hi1_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :\n (rv64_divu (0 : Word) dHi) >>> (32 : BitVec 6).toNat = 0 := by\n rw [div128Quot_shift0_q1_eq_zero dHi hdHi_ne]\n rfl\n\n",
... | [
{
"name": "div128Quot_shift0_q1c_eq_zero",
"fan_in": 2,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 11,
"n_chars": 404,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 1,
"automation_only": false,
... | 2 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -39,11 +39,21 @@
show (0 : Word).toNat / dHi.toNat = (0 : Word).toNat
simp
+/-- Under uHi=0 + hdHi_ne, Phase 1's hi1 = 0. -/
+theorem div128Quot_shift0_hi1_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :
+ (rv64_divu (0 : Word) dHi) >>> (32 : BitVec 6).toNat = 0 := by
+ rw [div128Quot_shift0_q1_eq_zero dHi hd... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_3 | 73c66bf0ccfb9aa5 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 3 | [
{
"theorem_name": "div128Quot_shift0_hi1_eq_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [div128Quot_shift0_q1_eq_zero dHi hdHi_ne]\n rfl",
"n_chars": 57,
"n_subproofs": 0,
"n_tactic... | [
{
"name": "div128Quot_shift0_q1_eq_zero",
"text": "/-- Under b3 ≥ 2^63 and uHi=0, Phase 1's q1 is zero. -/\ntheorem div128Quot_shift0_q1_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :\n rv64_divu (0 : Word) dHi = 0 := by\n apply BitVec.eq_of_toNat_eq\n rw [rv64_divu_toNat _ _ hdHi_ne]\n show (0 : Word).to... | [
{
"name": "div128Quot_shift0_rhat_eq_zero",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 7,
"n_chars": 255,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -31,9 +31,19 @@
-- Arithmetic bridge lemmas
-- ============================================================================
+/-- Under b3 ≥ 2^63 and uHi=0, Phase 1's q1 is zero. -/
+theorem div128Quot_shift0_q1_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :
+ rv64_divu (0 : Word) dHi = 0 := by
+ apply BitVec.eq_... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_4 | 4d96718210abecc1 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 2 | [
{
"theorem_name": "div128Quot_shift0_qDlo_eq_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [div128Quot_shift0_q1c_eq_zero dHi hdHi_ne]\n simp",
"n_chars": 74,
"n_subproofs... | [
{
"name": "div128Quot_shift0_q1c_eq_zero",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 1's q1c = 0. -/\ntheorem div128Quot_shift0_q1c_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :\n (let q1 := rv64_divu (0 : Word) dHi\n let hi1 := q1 >>> (32 : BitVec 6).toNat\n if hi1 = 0 then q1 else q1 + signExtend1... | [
{
"name": "div128Quot_shift0_qDlo_eq_zero",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 11,
"n_chars": 388,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
... | 3 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -45,12 +45,25 @@
rw [div128Quot_shift0_q1_eq_zero dHi hdHi_ne]
rfl
+/-- Under uHi=0 + hdHi_ne, Phase 1's q1c = 0. -/
+theorem div128Quot_shift0_q1c_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :
+ (let q1 := rv64_divu (0 : Word) dHi
+ let hi1 := q1 >>> (32 : BitVec 6).toNat
+ if hi1 = 0 then q1 else q... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_5 | 9f3e0cde74e807ae | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 2 | [
{
"theorem_name": "div128Quot_shift0_q1c_eq_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [div128Quot_shift0_hi1_eq_zero dHi hdHi_ne]\n rw [if_pos rfl]\n exact div128Quot_shift0_... | [
{
"name": "div128Quot_shift0_hi1_eq_zero",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 1's hi1 = 0. -/\ntheorem div128Quot_shift0_hi1_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :\n (rv64_divu (0 : Word) dHi) >>> (32 : BitVec 6).toNat = 0 := by\n rw [div128Quot_shift0_q1_eq_zero dHi hdHi_ne]\n rfl\n\n",
... | [
{
"name": "div128Quot_shift0_rhatc_eq_zero",
"fan_in": 2,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 12,
"n_chars": 484,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 1,
"automation_only": false,... | 3 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -39,6 +39,12 @@
show (0 : Word).toNat / dHi.toNat = (0 : Word).toNat
simp
+/-- Under uHi=0 + hdHi_ne, Phase 1's hi1 = 0. -/
+theorem div128Quot_shift0_hi1_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :
+ (rv64_divu (0 : Word) dHi) >>> (32 : BitVec 6).toNat = 0 := by
+ rw [div128Quot_shift0_q1_eq_zero dHi hdH... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_6 | 029ffa17a0a82709 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 1 | [
{
"theorem_name": "div128Quot_shift0_rhatc_eq_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [div128Quot_shift0_hi1_eq_zero dHi hdHi_ne]\n rw [if_pos rfl]\n exact div128Quot_shift... | [
{
"name": "div128Quot_shift0_rhat_eq_zero",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 1's rhat = 0 - q1*dHi = 0. -/\ntheorem div128Quot_shift0_rhat_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :\n (0 : Word) - (rv64_divu (0 : Word) dHi) * dHi = 0 := by\n rw [div128Quot_shift0_q1_eq_zero dHi hdHi_ne]\n simp... | [
{
"name": "div128Quot_shift0_rhatUn1_eq_div_un1",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 17,
"n_chars": 744,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": f... | 4 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -45,12 +45,22 @@
rw [div128Quot_shift0_q1_eq_zero dHi hdHi_ne]
rfl
+/-- Under uHi=0 + hdHi_ne, Phase 1's rhat = 0 - q1*dHi = 0. -/
+theorem div128Quot_shift0_rhat_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :
+ (0 : Word) - (rv64_divu (0 : Word) dHi) * dHi = 0 := by
+ rw [div128Quot_shift0_q1_eq_zero dHi hd... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_7 | f2c9da75e8ad089f | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 2 | [
{
"theorem_name": "div128Quot_shift0_qDlo_eq_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [div128Quot_shift0_q1c_eq_zero dHi hdHi_ne]\n simp",
"n_chars": 74,
"n_subproofs... | [
{
"name": "div128Quot_shift0_q1c_eq_zero",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 1's q1c = 0. -/\ntheorem div128Quot_shift0_q1c_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :\n (let q1 := rv64_divu (0 : Word) dHi\n let hi1 := q1 >>> (32 : BitVec 6).toNat\n if hi1 = 0 then q1 else q1 + signExtend1... | [
{
"name": "div128Quot_shift0_ult_false",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 28,
"n_chars": 1187,
"n_subproofs": 1,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 5,
"n_structural": 2,
"automation_only": false,
... | 4 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -45,12 +45,25 @@
rw [div128Quot_shift0_q1_eq_zero dHi hdHi_ne]
rfl
+/-- Under uHi=0 + hdHi_ne, Phase 1's q1c = 0. -/
+theorem div128Quot_shift0_q1c_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :
+ (let q1 := rv64_divu (0 : Word) dHi
+ let hi1 := q1 >>> (32 : BitVec 6).toNat
+ if hi1 = 0 then q1 else q... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_8 | ba0877a8a7a926ef | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 1 | [
{
"theorem_name": "div128Quot_shift0_ult_false",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n -- Reduce to `BitVec.ult rhatUn1 0 = false`. qDlo = 0 via helper.\n have hqDlo : (if (rv64_di... | [
{
"name": "div128Quot_shift0_qDlo_eq_zero",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 1's qDlo = q1c * dLo = 0. -/\ntheorem div128Quot_shift0_qDlo_eq_zero (dHi dLo : Word) (hdHi_ne : dHi ≠ 0) :\n (let q1 := rv64_divu (0 : Word) dHi\n let hi1 := q1 >>> (32 : BitVec 6).toNat\n let q1c := if hi1 = 0... | [
{
"name": "div128Quot_shift0_q1_prime_eq_zero",
"fan_in": 3,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 18,
"n_chars": 775,
"n_subproofs": 1,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": fal... | 5 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -55,6 +55,16 @@
rw [if_pos rfl]
exact div128Quot_shift0_q1_eq_zero dHi hdHi_ne
+/-- Under uHi=0 + hdHi_ne, Phase 1's qDlo = q1c * dLo = 0. -/
+theorem div128Quot_shift0_qDlo_eq_zero (dHi dLo : Word) (hdHi_ne : dHi ≠ 0) :
+ (let q1 := rv64_divu (0 : Word) dHi
+ let hi1 := q1 >>> (32 : BitVec 6).toNat
+... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_9 | baece6a3fb010164 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 2 | [
{
"theorem_name": "div128Quot_shift0_rhatUn1_eq_div_un1",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [show (if (rv64_divu (0 : Word) dHi) >>> (32 : BitVec 6).toNat = 0 then\n ... | [
{
"name": "div128Quot_shift0_rhatc_eq_zero",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 1's rhatc = 0 (since rhat = 0 and hi1 = 0 so rhatc = rhat). -/\ntheorem div128Quot_shift0_rhatc_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :\n (let q1 := rv64_divu (0 : Word) dHi\n let rhat := (0 : Word) - q1 * dHi\n... | [
{
"name": "div128Quot_shift0_rhat_prime_eq_zero",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 7,
"n_lines": 18,
"n_chars": 773,
"n_subproofs": 1,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": f... | 7 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -71,6 +71,17 @@
rw [div128Quot_shift0_q1c_eq_zero dHi hdHi_ne]
simp
+/-- Under uHi=0 + hdHi_ne, Phase 1's rhatc = 0 (since rhat = 0 and hi1 = 0 so rhatc = rhat). -/
+theorem div128Quot_shift0_rhatc_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :
+ (let q1 := rv64_divu (0 : Word) dHi
+ let rhat := (0 : Word... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_10 | ec6bd7522a7b3d5a | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 2 | [
{
"theorem_name": "div128Quot_shift0_rhatUn1_eq_div_un1",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [show (if (rv64_divu (0 : Word) dHi) >>> (32 : BitVec 6).toNat = 0 then\n ... | [
{
"name": "div128Quot_shift0_rhatc_eq_zero",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 1's rhatc = 0 (since rhat = 0 and hi1 = 0 so rhatc = rhat). -/\ntheorem div128Quot_shift0_rhatc_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :\n (let q1 := rv64_divu (0 : Word) dHi\n let rhat := (0 : Word) - q1 * dHi\n... | [
{
"name": "div128Quot_shift0_cu_rhat_un1_eq_div_un1",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 8,
"n_lines": 24,
"n_chars": 1216,
"n_subproofs": 0,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 0,
"automation_on... | 8 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -71,6 +71,17 @@
rw [div128Quot_shift0_q1c_eq_zero dHi hdHi_ne]
simp
+/-- Under uHi=0 + hdHi_ne, Phase 1's rhatc = 0 (since rhat = 0 and hi1 = 0 so rhatc = rhat). -/
+theorem div128Quot_shift0_rhatc_eq_zero (dHi : Word) (hdHi_ne : dHi ≠ 0) :
+ (let q1 := rv64_divu (0 : Word) dHi
+ let rhat := (0 : Word... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_11 | 393a60199ff0c247 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 2 | [
{
"theorem_name": "div128Quot_shift0_q1_prime_eq_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n have hult := div128Quot_shift0_ult_false dHi dLo div_un1 hdHi_ne\n simp only [] at hult... | [
{
"name": "div128Quot_shift0_ult_false",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 2a's guard `BitVec.ult rhatUn1 qDlo = false`\n since `qDlo = 0` and unsigned comparison `x < 0` is always false. -/\ntheorem div128Quot_shift0_ult_false (dHi dLo div_un1 : Word) (hdHi_ne : dHi ≠ 0) :\n (let q1 := rv64_d... | [
{
"name": "div128Quot_shift0_cu_q1_dlo_eq_zero",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 6,
"n_lines": 24,
"n_chars": 1177,
"n_subproofs": 0,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 0,
"automation_only": ... | 6 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -65,6 +65,33 @@
rw [div128Quot_shift0_q1c_eq_zero dHi hdHi_ne]
simp
+/-- Under uHi=0 + hdHi_ne, Phase 2a's guard `BitVec.ult rhatUn1 qDlo = false`
+ since `qDlo = 0` and unsigned comparison `x < 0` is always false. -/
+theorem div128Quot_shift0_ult_false (dHi dLo div_un1 : Word) (hdHi_ne : dHi ≠ 0) :
+ ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_12 | 959bb3e4845056f5 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 3 | [
{
"theorem_name": "div128Quot_shift0_cu_q1_dlo_eq_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 12,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [show (let q1 := rv64_divu (0 : Word) dHi\n let rhat := (0 : Word) - q1 ... | [
{
"name": "div128Quot_shift0_q1_prime_eq_zero",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 2a's q1' = q1c = 0. -/\ntheorem div128Quot_shift0_q1_prime_eq_zero (dHi dLo div_un1 : Word) (hdHi_ne : dHi ≠ 0) :\n (let q1 := rv64_divu (0 : Word) dHi\n let rhat := (0 : Word) - q1 * dHi\n let hi1 := q1 >>>... | [
{
"name": "div128Quot_shift0_un21_eq_div_un1",
"fan_in": 2,
"n_deps_direct": 2,
"n_deps_transitive": 11,
"n_lines": 20,
"n_chars": 973,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": fal... | 11 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -109,6 +109,23 @@
rw [show (0 : Word).toNat = 0 from rfl] at h
exact Nat.not_lt_zero _ h
+/-- Under uHi=0 + hdHi_ne, Phase 2a's q1' = q1c = 0. -/
+theorem div128Quot_shift0_q1_prime_eq_zero (dHi dLo div_un1 : Word) (hdHi_ne : dHi ≠ 0) :
+ (let q1 := rv64_divu (0 : Word) dHi
+ let rhat := (0 : Word) - ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_13 | 040863eac648aa1f | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 3 | [
{
"theorem_name": "div128Quot_shift0_cu_q1_dlo_eq_zero",
"depth": 1,
"n_commands": 0,
"n_lines": 12,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [show (let q1 := rv64_divu (0 : Word) dHi\n let rhat := (0 : Word) - q1 ... | [
{
"name": "div128Quot_shift0_q1_prime_eq_zero",
"text": "/-- Under uHi=0 + hdHi_ne, Phase 2a's q1' = q1c = 0. -/\ntheorem div128Quot_shift0_q1_prime_eq_zero (dHi dLo div_un1 : Word) (hdHi_ne : dHi ≠ 0) :\n (let q1 := rv64_divu (0 : Word) dHi\n let rhat := (0 : Word) - q1 * dHi\n let hi1 := q1 >>>... | [
{
"name": "div128Quot_shift0_q0_eq",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 12,
"n_lines": 19,
"n_chars": 939,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
"m... | 12 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -109,6 +109,23 @@
rw [show (0 : Word).toNat = 0 from rfl] at h
exact Nat.not_lt_zero _ h
+/-- Under uHi=0 + hdHi_ne, Phase 2a's q1' = q1c = 0. -/
+theorem div128Quot_shift0_q1_prime_eq_zero (dHi dLo div_un1 : Word) (hdHi_ne : dHi ≠ 0) :
+ (let q1 := rv64_divu (0 : Word) dHi
+ let rhat := (0 : Word) - ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_14 | 0da9df2497cc886f | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 3 | [
{
"theorem_name": "div128Quot_shift0_dHi_ne",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h\n have h_ge := div128Quot_shift0_dHi_ge b3 hb3_ge\n have h_toNat : (b3 >>> (32 : BitVec 6).toNat).toNat ... | [
{
"name": "div128Quot_shift0_dHi_ge",
"text": "/-- Under b3 ≥ 2^63, dHi = b3 >> 32 has toNat ≥ 2^31. -/\ntheorem div128Quot_shift0_dHi_ge (b3 : Word) (hb3_ge : b3.toNat ≥ 2^63) :\n (b3 >>> (32 : BitVec 6).toNat).toNat ≥ 2^31 := by\n rw [show (32 : BitVec 6).toNat = 32 from by decide]\n rw [BitVec.toNat... | [
{
"name": "div128Quot_shift0_dHi_ne",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 319,
"n_subproofs": 2,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,
"ma... | 1 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -31,9 +31,21 @@
-- Arithmetic bridge lemmas
-- ============================================================================
+/-- Under b3 ≥ 2^63, dHi = b3 >> 32 has toNat ≥ 2^31. -/
+theorem div128Quot_shift0_dHi_ge (b3 : Word) (hb3_ge : b3.toNat ≥ 2^63) :
+ (b3 >>> (32 : BitVec 6).toNat).toNat ≥ 2^31 := by
+... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_15 | 8b76e481fc2ec250 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 15 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 1 | [
{
"theorem_name": "div128Quot_shift0_q0_le_one",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [div128Quot_shift0_q0_eq (b3 >>> (32 : BitVec 6).toNat)\n ((b3 <<< (32 : BitVec 6).to... | [
{
"name": "rv64_divu_lo32_hi32_le_one",
"text": "/-- Under div_un1 < 2^32 and dHi ≥ 2^31: `(rv64_divu div_un1 dHi).toNat ≤ 1`. -/\ntheorem rv64_divu_lo32_hi32_le_one (div_un1 dHi : Word)\n (hdiv_un1_lt : div_un1.toNat < 2^32) (hdHi_ge : dHi.toNat ≥ 2^31) :\n (rv64_divu div_un1 dHi).toNat ≤ 1 := by\n ... | [
{
"name": "div128Quot_shift0_q0_le_one",
"fan_in": 2,
"n_deps_direct": 5,
"n_deps_transitive": 17,
"n_lines": 30,
"n_chars": 1488,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,
... | 17 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -226,6 +226,25 @@
simp only []
rw [div128Quot_shift0_un21_eq_div_un1 dHi dLo div_un1 hdHi_ne]
+/-- Under div_un1 < 2^32 and dHi ≥ 2^31: `(rv64_divu div_un1 dHi).toNat ≤ 1`. -/
+theorem rv64_divu_lo32_hi32_le_one (div_un1 dHi : Word)
+ (hdiv_un1_lt : div_un1.toNat < 2^32) (hdHi_ge : dHi.toNat ≥ 2^31) :
+ ... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_16 | 6d27dc11ee677b37 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 16 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 2 | [
{
"theorem_name": "div128Quot_shift0_q0_le_one",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only []\n rw [div128Quot_shift0_q0_eq (b3 >>> (32 : BitVec 6).toNat)\n ((b3 <<< (32 : BitVec 6).to... | [
{
"name": "hi32_toNat_lt_pow32",
"text": "/-- Structural bound: `(a >>> 32).toNat < 2^32` (high 32 bits of a fit in 32 bits). -/\ntheorem hi32_toNat_lt_pow32 (a : Word) :\n (a >>> (32 : BitVec 6).toNat).toNat < 2^32 := by\n rw [show (32 : BitVec 6).toNat = 32 from by decide]\n rw [BitVec.toNat_ushiftRi... | [
{
"name": "div128Quot_shift0_hi2_eq_zero",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 19,
"n_lines": 27,
"n_chars": 1306,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 2,
"automation_only": false,... | 19 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -245,6 +245,28 @@
omega
omega
+/-- Structural bound: `(a >>> 32).toNat < 2^32` (high 32 bits of a fit in 32 bits). -/
+theorem hi32_toNat_lt_pow32 (a : Word) :
+ (a >>> (32 : BitVec 6).toNat).toNat < 2^32 := by
+ rw [show (32 : BitVec 6).toNat = 32 from by decide]
+ rw [BitVec.toNat_ushiftRight, Nat.s... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_70abc6c8fc92_17 | 879dd68877fb9193 | lean | lean | github.com/Verified-zkEVM/evm-asm | 7d5875858bc3727250adb6880c8339048365b1b6 | EvmAsm/Evm64/EvmWordArith/Div128Shift0.lean | Div128Shift0 | 17 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 29 | 3 | [
{
"theorem_name": "div128Quot_shift0_dHi_ne",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h\n have h_ge := div128Quot_shift0_dHi_ge b3 hb3_ge\n have h_toNat : (b3 >>> (32 : BitVec 6).toNat).toNat ... | [
{
"name": "div128Quot_shift0_dHi_ge",
"text": "/-- Under b3 ≥ 2^63, dHi = b3 >> 32 has toNat ≥ 2^31. -/\ntheorem div128Quot_shift0_dHi_ge (b3 : Word) (hb3_ge : b3.toNat ≥ 2^63) :\n (b3 >>> (32 : BitVec 6).toNat).toNat ≥ 2^31 := by\n rw [show (32 : BitVec 6).toNat = 32 from by decide]\n rw [BitVec.toNat... | [
{
"name": "div128Quot_shift0_q0c_eq_q0",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 20,
"n_lines": 27,
"n_chars": 1266,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
... | 20 | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | /-
EvmAsm.Evm64.EvmWordArith.Div128Shift0
Lemmas about `div128Quot 0 a3 b3` under shift=0 normalization
(`b3 ≥ 2^63`). Under this regime, uHi=0 ⟹ un21 < 2^32 ⟹ Phase 2a
doesn't correct ⟹ rhat2c < 2^32 ⟹ the Phase 2b false-positive
(counterexample from #1138) CAN'T fire. So the algorithm is correct
in this ... | @@ -267,9 +267,21 @@
-- `div128Quot_shift0_ge_a3_div_b3` is defined below (after dHi_ne et al).
+/-- Under b3 ≥ 2^63, dHi = b3 >> 32 has toNat ≥ 2^31. -/
+theorem div128Quot_shift0_dHi_ge (b3 : Word) (hb3_ge : b3.toNat ≥ 2^63) :
+ (b3 >>> (32 : BitVec 6).toNat).toNat ≥ 2^31 := by
+ rw [show (32 : BitVec 6).toN... | {
"repo": "evm-asm",
"git_repo": "github.com/Verified-zkEVM/evm-asm",
"revision": "7d5875858bc3727250adb6880c8339048365b1b6",
"lean_toolchain": "leanprover/lean4:v4.30.0-rc1",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.