Repository navigation
Golf SignedStaircase: 442 → 299 lines - #2570
Merged
Merged
Conversation
Reuse thresholdMatrix_one_preserves_interlacing and the existing staircaseSum reverse/append lemmas, fold the four degree and sign cases into one, and compress the seed, threshold ordering and inverse-gamma plumbing. Public statements unchanged; signed_step_entries and SignedPeakInvariant.natDegree_sum (no other users) are now local. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-up to #2569 / #2568: a shorter proof of the same statements.
thresholdMatrix_one_preserves_interlacinginstead of an inlined 2×2 argument.staircaseSum_reverse_append_low/highvia a proof-only import ofCompatibility.NDCutStaircase. The import closure is 215 local modules and still contains no other peak module.The public API is unchanged:
signedDown,signedUp,signedVector, theSignedPeakInvariantfields,signedPeakInvariant_one,SignedPeakInvariant.step,sum_signedVectorandSignedPeakInvariant.splits_sum.signed_step_entriesandSignedPeakInvariant.natDegree_sumhad no other users and are now local. All (2,3,3) regression examples are kept.Checked locally:
lake-workspace buildof the module,lint-style, and the import-architecture, root-import, module-system, declaration-name and proof-status guards.🤖 Generated with Claude Code