mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-08-13 20:30:35 +00:00
Add finset_pair_eq_iff lemma (the 'dimensional annotation' step):
{a,b} = {c,d} as Finsets → (a=c ∧ b=d) ∨ (a=d ∧ b=c)
Proved via Set.pair_eq_pair_iff + Finset.coe_inj coercion.
Use it to close sidon_energy_bound (E(S) ≤ 2k²):
1. Route every filtered quadruple to 'same' or 'swap' shape
2. Each shape is an image of S×S (card ≤ k²)
3. Union ≤ same.card + swap.card ≤ 2k²
Inspired by Trail of Bits dimensional analysis technique:
annotate once (finset_pair_eq_iff), validate mechanically.
Sorry count: 9 tokens across 8 theorems (down from 10/9).
Build: 3210 jobs, 0 errors
Co-Authored-By: Allaun Silverfox <bigdataiscoming+9i37y6j2@protonmail.com>
|
||
|---|---|---|
| .. | ||
| conversions/hardware | ||
| external/OTOM | ||
| LeanGPT | ||
| Semantics | ||
| CHAIN_ALL_REVIEW_REPORT.md | ||