Prove uniqueness of getBit binary representation#181
Conversation
Add getBit_injective (pointwise bit equality implies number equality) and getBit_repr_unique (any binary coefficient sequence summing to j must agree with getBit at each position). Remove resolved TODO.
🤖 Gemini PR SummaryMathematical Formalization
Structural Refinement and Documentation
Statistics
Lean Declarations ✏️ **Added:** 2 declaration(s)
🎨 **Style Guide Adherence**There are more than 20 violations in the provided diff. They are grouped by rule below:
📄 **Per-File Summaries**
Last updated: 2026-04-04 00:15 UTC. |
dhsorens
left a comment
There was a problem hiding this comment.
thank you for this PR! looks good to me. if you can just fix the linting issue and update the branch we can merge this. I'm not too worried about the length of Bitwise.lean so feel free to add it to style-exceptions.txt
🤖 PR Summary
Mathematical Formalization
Refactoring and Proof Completion
Statistics
Lean Declarations ✏️ **Added:** 2 declaration(s)
📋 **Additional Analysis**Style and Naming Guidelines
Documentation Standards
Module Layout and Maintenance
Syntax and Formatting
📄 **Per-File Summaries**
Last updated: 2026-06-23 23:35 UTC. |
Bitwise.lean grew past the line-count threshold after adding the getBit uniqueness proofs. Per reviewer guidance, add it to the style exceptions list rather than splitting the file. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add getBit_injective (pointwise bit equality implies number equality) and getBit_repr_unique (any binary coefficient sequence summing to j must agree with getBit at each position). Remove resolved TODO.