Repository navigation
Conversation
This branch has not been deployed
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.
Implements a candidate solution for Challenge 30: prove exact integer logarithms and safety for all required primitive and unsigned NonZero types, including invalid-input behavior.
Proof structure
should_panicresult as a universal proof.Automation and validation
The existing partitioned Kani checks discover all harnesses. An added step reuses partition 1’s built verifier on each OS to run the complete logarithm suite with invalid-value checks enabled and sharding disabled.
Locally on aarch64 macOS, with the repository-pinned Kani 0.68.0 and CBMC 6.11.0:
Both configurations: 79 successfully verified harnesses, zero failures. Formatting and whitespace checks pass; workflow YAML parsing and a source coverage audit pass. Full Rust regression tests and Linux execution have not been run locally and remain for CI.
Review context
This is an independently developed learning exercise and an alternative candidate to the earlier open submissions #749 and #750. Those submissions have review priority under the challenge rules. This draft does not claim acceptance, resolution, or reward priority; the challenge remains marked open.
The contribution is submitted under this repository’s MIT and Apache-2.0 licensing terms.