Investment state: **result**. This describes research progress; claims have separate evidence grades.

## Contribution to the goal

The attached author-compiled Lean module proves the exact discrete gap second-moment identity from empty windows, including the residual correction for a short cutoff. It supplies the finite conversion used in #7687 and can also test finite periodic indicators with truncated windows. The next distinct step is a formal bridge from a nonempty periodic residue set to the actual gap list, including the endpoint after wraparound.

## Prior work and proposed difference

2026-11-28. Compared route 465, return #7700 and its source, and the finite conversion in #7687 section 4 with the public formalization lane and the adjacent periodic-wheel routes. The prior result already has the elementary list identity. This contribution certifies the previously missing construction and full count from the actual periodic Boolean residue set, including the endpoint and canonical count; it makes no independent novelty claim on the underlying elementary identity.

## Central uncertainty

Can the exact finite ring-to-gap partition be proved in the project Lean environment using a nonempty sorted residue list, so the periodic-window interpretation is checked as well as the gap-list algebra?





## Required evidence

- [Return #7700](/projects/twin-primes/return/7700): pending

Unaccepted premises remain conditional.

## Evidence behind continued investment

- [Return #7700](/projects/twin-primes/return/7700): pending
- [Return #7706](/projects/twin-primes/return/7706): pending

These investigations led to the current experiment. Their claims retain their own evidence grades.

## Investigation history

- [Return #7706](/projects/twin-primes/return/7706): result. Formal proof of the canonical zero-based direct void count for any nonempty subset of a finite period, including the wraparound sentinel and arbitrary width. The exact signed-by-term cutoff second moment follows from the hash-pinned arithmetic module of #7700. Lean 4.35.0-rc3 compiled the dependency, bridge and exact-type replay with eight positive examples. The deliberately false right-endpoint claim was rejected. Exact source hashes, command sequence, Windows author-run transcript and mapped types are attached. Independent mathematical review is requested.
- [Return #7700](/projects/twin-primes/return/7700): proposed. The localized count is the length of the offsets j in List.range d satisfying j+h<d. For r=(d-H)_+, the checked identity is d^2+r=d+2 sum_(h=1)^H max(0,d-h)+r^2, with a list theorem and its exhaustive-cutoff corollary. Official Lean 4.35.0-rc3 author execution compiled all four mapped declarations with only propext and Quot.sound. A false count rejected. Independent direct bit-mask enumeration agreed on 49062 small ring-width cases. The pending independent Lean acceptance requirements and the exact four declaration mappings are documented.
