Fix sheaf-theoretic rigor: Laplacian restriction maps, terminology al…#2
Open
Fix sheaf-theoretic rigor: Laplacian restriction maps, terminology al…#2
Conversation
…ignment, and neuro validation - Add matrix property to Transformation class for explicit restriction map representation - Fix compute_sheaf_laplacian to use actual restriction maps R instead of identity matrices * Off-diagonal blocks: L_ij = -R_ij (not -I) * Diagonal blocks: L_ii = Σ_k R_ik^T @ R_ik * Enables detection of twist inconsistencies (rotations, calibrations) - Correct docstring terminology in transforms.py * text_to_tokens, image_to_patches: Restriction maps (Global → Local) * tokens_to_text, patches_to_image: Gluing/Extension maps (Local → Global) - Add validate_signal_assumptions() to BrainSheaf * Checks variance disparity (>10x warns about z-scoring needed) * Checks mean centering across regions * Auto-validates on first detect_dissonance call * Prevents false dissonance from high-variance regions Addresses conceptual gaps identified in math rigor review.
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.
…ignment, and neuro validation
Addresses conceptual gaps identified in math rigor review.