Skip to content
Open
Show file tree
Hide file tree
Changes from 72 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
fc6b2b9
proofs: expose native EVMYulLean transition target
claude Apr 22, 2026
cdadf59
docs: clarify verity helper calls
claude Apr 22, 2026
1640081
proofs: track native transition blockers
claude Apr 22, 2026
ebbd280
proofs: harden native runtime smoke coverage
claude Apr 22, 2026
747ba1b
proofs: document native env defaults
claude Apr 22, 2026
3ecef1d
proofs: pin native dispatch selector cases
claude Apr 22, 2026
d163384
proofs: pin native dispatch case bodies
claude Apr 22, 2026
0be3e6c
proofs: pin native calldata bridge bytes
claude Apr 22, 2026
14040ca
proofs: pin native dispatcher selector expression
claude Apr 22, 2026
4d91760
docs: clarify native dispatcher execution blocker
claude Apr 22, 2026
0b516fc
proofs: pin native error rollback projection
claude Apr 22, 2026
4d28241
proofs: require native observable slots
claude Apr 22, 2026
e059708
proofs: pin native observable sload
claude Apr 22, 2026
8a5a25d
proofs: cover native IR entrypoint
claude Apr 22, 2026
01fad08
proofs: cover native log projection arities
claude Apr 22, 2026
3a9451c
proofs: cover native transient storage
claude Apr 22, 2026
ef27bda
proofs: cover native stop halt projection
claude Apr 22, 2026
b0d0a87
proofs: cover native value result projection
claude Apr 22, 2026
17c20a2
proofs: cover native return halt projection
claude Apr 22, 2026
616e39d
proofs: pin native halt builtin lowering
claude Apr 22, 2026
93f1b09
proofs: cover native ok storage projection
claude Apr 22, 2026
6e4bb81
proofs: pin native final mapping projection
claude Apr 22, 2026
6846a98
proofs: pin native helper call partition
claude Apr 22, 2026
d846ae2
proofs: pin native initial state bridge
claude Apr 22, 2026
8949e7b
proofs: pin native nested helper rejection
claude Apr 22, 2026
8b431c8
proofs: pin native hard error rollback
claude Apr 22, 2026
14103b9
proofs: pin native return dispatch lowering
claude Apr 22, 2026
4d5013f
proofs: pin native explicit storage slots
claude Apr 22, 2026
41ad1ff
proofs: pin native revert rollback
claude Apr 22, 2026
38cc57b
proofs: pin native IR slot forwarding
claude Apr 22, 2026
c6cf8f0
proofs: pin native transaction environment
claude Apr 22, 2026
3a36713
proofs: name native bridge invariants
claude Apr 22, 2026
0633d53
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
1b303a7
proofs: name native projection outcomes
claude Apr 22, 2026
ed9ce9f
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
a91031c
proofs: name native initial state invariants
claude Apr 22, 2026
f00b839
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
01738dd
proofs: name native storage seeding invariant
claude Apr 22, 2026
4569161
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
ebae796
proofs: name native execution pipeline invariant
claude Apr 22, 2026
8d70342
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
ac1e113
proofs: name native IR execution pipeline invariant
claude Apr 22, 2026
8b5128e
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
3247230
proofs: name native account installation invariant
claude Apr 22, 2026
527fd06
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
d36804d
proofs: name native environment defaults invariant
claude Apr 22, 2026
4d44138
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
661f8e7
proofs: name native calldata size invariant
claude Apr 22, 2026
7e34efb
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
f779f37
proofs: name native halt projection invariants
claude Apr 22, 2026
ae5bb73
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
116f924
proofs: name native event projection invariants
claude Apr 22, 2026
79677ed
chore: auto-refresh derived artifacts
github-actions[bot] Apr 22, 2026
6b268a7
proofs: name omitted native storage invariant
claude Apr 22, 2026
f5d763e
proofs: name native finalMappings invariant
claude Apr 22, 2026
120e053
proofs: name native final storage invariants
claude Apr 22, 2026
b5e39b9
proofs: name native result observable invariants
claude Apr 22, 2026
08601d4
proofs: name missing native account storage invariant
claude Apr 22, 2026
cba4038
proofs: name native missing slot result invariants
claude Apr 22, 2026
193e6d6
proofs: name native final mapping invariants
claude Apr 22, 2026
e76a912
proofs: name native non-word return fallback
claude Apr 22, 2026
7f41306
proofs: name native call lowering invariants
claude Apr 22, 2026
e132814
proofs: name native environment bridge fields
claude Apr 22, 2026
71fe730
scripts: recognize partial defs in proof length check
claude Apr 22, 2026
985d7d5
scripts: test partial defs terminate proof spans
claude Apr 22, 2026
f10f5fd
ci: include native harness in evmyullean probe
claude Apr 22, 2026
92092ed
proofs: compare native env smoke with oracle
claude Apr 22, 2026
cb41fda
ci: guard native transition doc status
claude Apr 22, 2026
2799bb3
ci: guard native observable slot caveat
claude Apr 22, 2026
373790b
ci: guard native observable slot api
claude Apr 22, 2026
20e7b90
contracts: close evmyullean transition blockers
claude Apr 22, 2026
f85598c
contracts: harden overload and env accessors
claude Apr 22, 2026
30d108d
contracts: add migration parity surfaces
claude Apr 22, 2026
e01b323
contracts: remove legacy internal call surface
claude Apr 22, 2026
ef46e5b
contracts: fix overload review regressions
claude Apr 22, 2026
647f2f3
contracts: memoize tuple array element index
claude Apr 22, 2026
a9ec28c
contracts: fail closed on ambiguous overload lookup
claude Apr 22, 2026
c06ab65
compiler: recurse trust surface through array element words
claude Apr 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/evmyullean-fork-conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: EVMYulLean fork conformance
# Weekly probe that the pinned lfglabs-dev/EVMYulLean fork still
# satisfies Verity's bridge assumptions: the fork audit and adapter
# report artifacts are in sync, adapter correctness still builds,
# all universal bridge lemmas still build, the public EndToEnd
# EVMYulLean target still builds, and all 123 concrete `native_decide`
# bridge-equivalence tests still pass.
# all universal bridge lemmas still build, the native transition harness still
# builds, the public EndToEnd EVMYulLean target still builds, and all 123
# concrete `native_decide` bridge-equivalence tests still pass.
#
# Burn-in: the probe step is captured with `continue-on-error: true`
# during the two-week window starting 2026-04-20 (see issue #1722 plan
Expand Down Expand Up @@ -36,6 +36,8 @@ on:
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanBodyClosure.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanBridgeLemmas.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanBridgeTest.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanNativeHarness.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanNativeSmokeTest.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanRetarget.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanSignedArithSpec.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanSourceExprClosure.lean'
Expand All @@ -58,6 +60,8 @@ on:
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanBodyClosure.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanBridgeLemmas.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanBridgeTest.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanNativeHarness.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanNativeSmokeTest.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanRetarget.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanSignedArithSpec.lean'
- 'Compiler/Proofs/YulGeneration/Backends/EvmYulLeanSourceExprClosure.lean'
Expand Down Expand Up @@ -160,7 +164,7 @@ jobs:
"make test-evmyullean-fork",
"```",
"",
"This guard checks the pinned EVMYulLean fork audit, checks the adapter report, rebuilds adapter correctness and the public EndToEnd target, and runs the concrete bridge-equivalence tests."
"This guard checks the pinned EVMYulLean fork audit, checks the adapter report, rebuilds adapter correctness, the native transition harness, and the public EndToEnd target, and runs the concrete bridge-equivalence tests."
];
const body = bodyLines.join("\n");

Expand Down
5 changes: 3 additions & 2 deletions AXIOMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ the EVM.
**Soundness controls**:
- `make check` validates the fork-audit artifact against `lake-manifest.json`.
- `make test-evmyullean-fork` rechecks the fork audit, checks the adapter
report, rebuilds adapter correctness and the public EndToEnd EVMYulLean
target, and runs the concrete `native_decide` bridge-equivalence tests.
report, rebuilds adapter correctness, the native transition harness, the
public EndToEnd EVMYulLean target, and the concrete `native_decide`
bridge-equivalence tests.
- `.github/workflows/evmyullean-fork-conformance.yml` runs the conformance probe
weekly; after the burn-in ending 2026-05-04, scheduled/manual failures fail
the workflow and open or update a GitHub issue for drift triage.
Expand Down
4 changes: 4 additions & 0 deletions Compiler/CompilationModel/AbiHelpers.lean
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def eventSignature (eventDef : EventDef) : String :=
def errorSignature (errorDef : ErrorDef) : String :=
s!"{errorDef.name}(" ++ String.intercalate "," (errorDef.params.map paramTypeToSolidityString) ++ ")"

def functionSignature (fn : FunctionSpec) : String :=
let params := fn.params.map (fun p => paramTypeToSolidityString p.ty)
s!"{fn.name}(" ++ String.intercalate "," params ++ ")"

def storageArrayElemTypeToParamType : StorageArrayElemType → ParamType
| .uint256 => .uint256
| .address => .address
Expand Down
4 changes: 2 additions & 2 deletions Compiler/CompilationModel/Dispatch.lean
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ private def validateCompileInputsBeforeFieldWriteConflict
for ext in spec.externals do
let _ ← externalFunctionReturns ext
validateInteropExternalSpec ext
match firstDuplicateName (spec.functions.map (·.name)) with
match firstDuplicateName (spec.functions.map functionSignature) with
| some dup =>
throw s!"Compilation error: duplicate function name '{dup}' in {spec.name}"
throw s!"Compilation error: duplicate function signature '{dup}' in {spec.name}"
Comment thread
Th0rgal marked this conversation as resolved.
Comment thread
Th0rgal marked this conversation as resolved.
| none =>
pure ()
match firstDuplicateName (spec.errors.map (·.name)) with
Expand Down
17 changes: 17 additions & 0 deletions Compiler/Proofs/YulGeneration/Backends/EvmYulLeanAdapter.lean
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,23 @@ def lowerExprNative : YulExpr → EvmYul.Yul.Ast.Expr
| some prim => .Call (.inl prim) loweredArgs
| none => .Call (.inr func) loweredArgs

@[simp] theorem lowerExprNative_call_runtimePrimOp
(func : String)
(args : List YulExpr)
(op : EvmYul.Operation .Yul)
(hOp : lookupRuntimePrimOp func = some op) :
lowerExprNative (.call func args) =
.Call (.inl op) (args.map lowerExprNative) := by
simp [lowerExprNative, hOp]

@[simp] theorem lowerExprNative_call_userFunction
(func : String)
(args : List YulExpr)
(hOp : lookupRuntimePrimOp func = none) :
lowerExprNative (.call func args) =
.Call (.inr func) (args.map lowerExprNative) := by
simp [lowerExprNative, hOp]

mutual
partial def lowerStmtsNative :
List YulStmt → Except AdapterError (List EvmYul.Yul.Ast.Stmt)
Expand Down
Loading
Loading