feat(specs): helixdb and chrono axiomatic stubs and ingestion sepcs#5
Merged
liamjdavis merged 1 commit intomainfrom Feb 18, 2026
Merged
Conversation
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.
This pull request introduces a robust framework for specifying and verifying code that depends on external libraries in the
erdos-graphproject. It establishes a pattern for creating abstract stub types and axiomatic wrappers for third-party dependencies, and demonstrates this approach forchrono,helix_db, and ingestion-related types. The PR also adds detailed specifications and verification checks for date range chunking and checkpoint logic. The most important changes are grouped below.Documentation and Patterns for External Library Stubbing:
CONTRIBUTING.mdwith a detailed guide on how to create and use abstract stub types for external libraries, including directory layout, step-by-step instructions, common pitfalls, and when to useopen spec fnvs.uninterp spec fn. [1] [2] [3]Axiomatic Stubs for External Libraries:
verified/src/axioms/chrono_stubs.rswith abstract representations and specifications forchrono::DateTimeandchrono::Duration, including ordering and arithmetic operations, and basic proof lemmas.verified/src/axioms/helix_db.rswith an abstract type for the Helix graph engine and uninterpreted spec functions for node and edge counts, along with an external constructor and verification check.verified/src/axioms/ingestion_types.rswith abstract stubs for publication records and ingestion config, including uninterpreted predicates for string fields and open spec functions for validity.verified/src/axioms/mod.rs.Specification and Verification of Ingestion Logic:
verified/src/ingestion_specs.rswith axiomatic wrappers for checkpoint logic and chunking date ranges, including detailed postconditions capturing coverage, contiguity, ordering, and edge cases. Includes proof lemmas and a suite of verification checks for these properties.Integration and Module Registration:
verified/src/lib.rsto make axioms and ingestion specifications available throughout the crate.…ingestion specs