fix(uniswap-v2): pair premise apart, skim control

Name the pair statement's premise PairAllowanceApart: the words
allowance[address(0)][s] that the ERC20 invariant reads avoid the
pair's 13 fixed slots. Drop the balanceOf[address(0)] half, which the
kernel computes (TrustedBase.image3), and show the premise holds for a
hash model, so it is not False in disguise. Add an axiom audit of
every pair headline, checked by #guard_msgs.

Run skim(0x3000) with token balances 11000/10500 over reserves
10000/10000 on the exact bytes and the checked source (reserves kept),
and on a mutant that forces the reserves to the balances first, as
solar's compile and SolidCore's translation of the mutant source
(reserves 11000/10500). The published spec refuses every successful
skim observable with reserve0 moved (skimUpdate_refused, kernel).
This commit is contained in:
alpharush 2026-11-14 14:44:57 +00:00
commit 6cb2c0141e
10 changed files with 247 additions and 34 deletions