Commit f026ac0
authored
proofs: continue generic layer 2 compiler verification (#1556)
* docs: add generic layer2 implementation plan
* proofs: add whole-contract support witnesses
* chore: regenerate proof surfaces
* Add generic layer2 contract theorem skeleton
* isolate compile function table extraction plumbing
* Close compile function-table extraction proof
* Factor supported Layer2 function interface
* Document generic layer2 function axiom
* Strengthen IR/source binding invariants
* Prove duplicate-name detection matches Nodup
* Refine generic layer2 validation interface
* Strengthen param name invariants for layer 2 proof
* Sync supported function axiom registry
* docs: align verification status with current proof boundaries
* refactor layer2 proof spine
* docs: clarify Layer 1 vs contract spec proofs
* Prove generic Layer 2 parameter-state exactness
* Prove Layer 2 initial state normalization
* Add Layer 2 exact-state expression lemmas
* Add bound-name invariants for Layer 2 expressions
* Add Layer 2 boolean expression helpers
* Add bounded-binding invariants for Layer 2
* Add generic ABI binding invariants for Layer 2
* Add bounded source expression leaf lemmas
* Add IR builtin expression proof lemmas
* Add compileExpr leaf correctness lemmas
* Add compileExpr context leaf correctness lemmas
* Add compileExpr boolean shape lemmas
* Add compileExpr proofs for eq lt gt
* Prove more compiled comparison cases
* Add compileExpr arithmetic shape lemmas
* Add compileExpr correctness lemmas for add and mul
* Add Uint256 Nat bridge lemmas for expression proofs
* Add compileExpr correctness for div and mod
* prove compileExpr sub semantics
* Add logical operator compileExpr proofs
* Add recursive compileExpr core proofs
* Add core statement execution lemmas
* Add recursive compile lemmas for core stmt lists
* Add core IR sequencing lemmas
* Add core stmt list execution proof
* Bypass body axiom for core stmt lists
* Add core require shape lemmas
* Prove core require statement simulation
* Add scoped binding invariants for core stmt proofs
* Make pickFreshName provably fresh
* Add IR block and if sequencing lemmas
* Add terminal core statement-list fragment
* Add scoped core expression correctness lemmas
* Document nested block fuel gap
* Add structural fuel lower bounds for compiled functions
* Generalize param-loading proofs to extra fuel
* Prove core supported functions with structural fuel
* Add terminal-core stmt list compilation theorem
* Add terminal ite fuel lower bounds
* Strengthen terminal ite size-of fuel bounds
* Strengthen terminal ite branch exec fuel bounds
* Add terminal core non-continue lemma
* Add terminal-core IR non-continue inversions
* Add generic IR sequencing fuel lemmas
* Add terminal ite block fuel helpers
* Add scoped fresh-temp lemmas for terminal ite proofs
* Add terminal ite fuel decomposition lemmas
* Add terminal-core fuel helpers
* Add generic IR eval helpers for terminal ite
* Add nonzero-fuel IR execution helpers
* Add terminal ite exec fuel facts
* Add terminal ite block fuel wrapper
* Add symbolic terminal IR fuel helpers
* Add terminal ite scope inclusion lemmas
* Export terminal fuel list rewrites
* Add terminal ite branch-entry wrappers
* Factor terminal ite then-branch composition
* Add terminal ite else fuel helpers
* Add terminal ite else composition lemmas
* Add two-cons sizeOf rewrites for terminal proofs
* Add terminal core tail exec fuel rewrites
* Add step-fuel IR execution wrappers
* Add two-head whole fuel rewrite
* Add scope transport lemmas for terminal core proof
* Add extra-fuel stop bridge
* Add extra-fuel terminal return theorem
* Extract whole-fuel IR composition wrappers
* Extract compileStmtList cons normalization
* Add compileStmtList cons inversion lemma
* Extract terminal-core compile nonempty lemma
* Add append-normalized whole-fuel wrappers
* Extract terminal ite source-branch equalities
* Add scope-local terminal core eval wrappers
* Add then-branch tail fuel rewrite for terminal ite
* Extract terminal ite compile inversion lemma
* Add terminal ite semantic lift wrappers
* Add terminal-core tail inversion lemmas
* Add whole-fuel terminal core append lemmas
* Add terminal ite compile-list inversion
* Add scope-local return whole-fuel helper
* Add scope-local whole-fuel core prefix wrappers
* Add singleton tail extra-fuel composition helper
* Add tail-fuel core prefix wrappers
* Add semantic terminal-core head wrappers
* Clarify terminal ite spent-fuel blocker
* Remove unused dispatch axioms
* Fix Yul blob-base-fee alignment and preservation build
* Narrow layer3 dispatch axioms
* docs: refine buildSwitch axiom blocker
* Prove buildSwitch dispatch normalization
* docs: narrow switch-case bridge blocker
* Narrow layer2 axioms to non-core bodies
* Narrow Layer 3 dispatch guard assumptions
* Add checked dispatch guard helper lemmas
* docs: align layer 3 axiom counts
* Narrow the switch-case bridge axiom
* proofs: narrow non-core layer2 body axiom1 parent 5ec6593 commit f026ac0
29 files changed
Lines changed: 14458 additions & 211 deletions
File tree
- Compiler
- CompilationModel
- Proofs
- IRGeneration
- YulGeneration
- artifacts
- docs-site
- content
- public
- docs
- examples/solidity
- scripts
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
| |||
222 | 221 | | |
223 | 222 | | |
224 | 223 | | |
225 | | - | |
226 | | - | |
227 | 224 | | |
228 | 225 | | |
229 | 226 | | |
| |||
232 | 229 | | |
233 | 230 | | |
234 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
235 | 241 | | |
236 | 242 | | |
237 | 243 | | |
| |||
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
256 | 266 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
12 | 25 | | |
13 | 26 | | |
14 | 27 | | |
15 | 28 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
25 | 97 | | |
26 | 98 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
42 | 132 | | |
43 | 133 | | |
44 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
138 | 132 | | |
139 | 133 | | |
140 | 134 | | |
| |||
163 | 157 | | |
164 | 158 | | |
165 | 159 | | |
166 | | - | |
167 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
| |||
0 commit comments