C9.4: Catalog +1 injection boundary effects and prove O(1/n) decorrelation bias bound#27
Draft
Copilot wants to merge 2 commits into
Draft
C9.4: Catalog +1 injection boundary effects and prove O(1/n) decorrelation bias bound#27Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
3 tasks
Agent-Logs-Url: https://github.com/TOTOGT/DM3-lab/sessions/23a3f52e-9a31-4115-bd2b-5b9597c3b5ef Co-authored-by: TOTOGT <266586635+TOTOGT@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Analyze and document boundary effects from +1 injections
C9.4: Catalog +1 injection boundary effects and prove O(1/n) decorrelation bias bound
Apr 3, 2026
TOTOGT
approved these changes
Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The decorrelation lemma's validity near window boundaries and in the small-n regime was unverified — specifically, whether the "+1" in
3n+1introduces systematic bias. This adds the analysis infrastructure to answer that question rigorously.New:
scripts/collatz_c9_4_boundary.pyCore analysis module establishing:
Δ(n) = 1/(3n+1)for oddn— the fractional contribution of the additive correction toT(n)n ∈ [1, 1024]):avg Δ(n) ≤ 1/(3·n_min + 1)— ratio always ≤ 1, verified viaaverage_bias_in_window()[1, 64]exit the window (18.75%), all atn ≡ 3 (mod 4)withv₂(3n+1) = 1whereT(n) ≈ 3n/2identify_boundary_windows) and exclusion-aware bias estimation (decorrelation_bias_estimate): excluding the low-nboundary raisesn_min, reducingavg_biasNew:
docs/analysis_ns/c9_4_boundary_analysis.mdDocuments definitions, the full small-n table, both propositions (per-step and per-window O(1/n)), and a checklist for invoking the decorrelation lemma safely — including when to apply uniform vs. adaptive boundary exclusion.
New:
scripts/tests/test_c9_4_boundary.py43 unit tests covering all public functions, including edge cases (
n=0, empty windows, exact known values ofT(n)).