C9.3: Formalize averaging measure μ and finite-window conventions for D9 analysis#28
Draft
Copilot wants to merge 2 commits into
Draft
C9.3: Formalize averaging measure μ and finite-window conventions for D9 analysis#28Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
3 tasks
… D9 analysis Agent-Logs-Url: https://github.com/TOTOGT/DM3-lab/sessions/a235fc62-e5d7-4cba-b7d7-dc62bef3e70c Co-authored-by: TOTOGT <266586635+TOTOGT@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix averaging window and normalization conventions for D9 analysis
C9.3: Formalize averaging measure μ and finite-window conventions for D9 analysis
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.
D9 artifacts had no canonical definition of the averaging measure μ, window function w(n), or agreed window types — scripts used inconsistent (and partially broken) windowing logic with no asymptotic specification.
Canonical specification (
docs/d9_averaging_window_conventions.md)Defines the three window types every D9 artifact must use:
[1, N][2^k, 2^(k+1))[1, N], weight 1/nAlso specifies: normalization rule for μ_W, limsup/liminf conventions, the chain
d̲(A) ≤ δ(A) ≤ d̄(A), and a mandatory D9 metadata JSON schema for every artifact.New implementation (
scripts/collatz_c9_3_averaging.py)Exposes
mu_contiguous,mu_dyadic,mu_logarithmic,estimate_limsup_liminf, andbuild_d9_metadataas importable functions.C9.2 fixes (
scripts/collatz_c9_2_sampling.py)T(n)replaced: was(3n+1) // 2^0(wrong); now uses correct 2-adic valuationsample()now actually iterates over the window (previously iteratedMtimes on a fixedn)mu_Win output JSON is now the exhaustive event count over the full window (|{n∈W: A(n)}| / |W|), notlen(sampled_results) / |W|Cross-references
docs/analysis_ns/README.mdupdated to point to the new spec (closes the open "waiting for windowing definition" status).gitignoreadded to excludescripts/out/empirical outputs