lfglabs-dev / lfglabs-dev/verity

proof(L2): Tier 3 — effects & observables (ABI encoding correctness; emit, typed reverts, returns)

Open
#2,082 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P2: important proof
Dominant language
Lean
Stars
148
Forks
20
Avg merge
1d 14h
Merged PRs (30d)
29

Description

Child of #1723 (Tier 3). Requires the ABI lemma groundwork; overlaps the codec work tracked in #1982.

Goal

Eliminate stmtTouchesUnsupportedEffectSurface: emit, rawLog, requireError, revertError, returnValues, returnArray, returnBytes, returnStorageWords.

Strategy

Build an ABI encoding correctness library first:

  1. Scalar ABI encoding (uint256, address, bool, bytes32)
  2. Dynamic offset/length encoding for bytes/arrays
  3. Compose with mstore correctness → memory layout matches ABI spec
  4. Thread through LOG opcodes (topics = indexed args, data = non-indexed encoding) and typed reverts

Done when

  • stmtTouchesUnsupportedEffectSurface removed/always-false
  • 0 sorry, make check green, no differential-test regressions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the parent issue #1723 and the overlapping codec work in #1982, then locate stmtTouchesUnsupportedEffectSurface. Trace the ABI and mstore proof requirements before attempting the listed effects. Done means that predicate is removed or always false, make check passes, there are 0 sorry instances, and differential tests show no regressions.

Written by the indexing model from the issue text.

Assessment

Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.