Repository navigation
Document SciMLBase interface contracts - #1432
Merged
ChrisRackauckas merged 59 commits intoJul 10, 2026
Merged
ChrisRackauckas merged 59 commits into
ChrisRackauckas merged 59 commits into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Member
Author
|
Implementation record:
Local verification after rebasing: focused interface suite 155/155, full |
The interface rewrite replaced the checkable algebraic type laws (`x::T + y::T = z::T`, `similar(x::T)::T`, `ArrayInterface.zeromatrix`, the mutable broadcast-assignment rules, the Newton-shift diagonal rule, etc.) with prose descriptions. The value of this page is that it is a specification a type can be checked against, so restore the type-signature laws as the normative contract. Where the prose surfaced genuinely-required operations that the old page omitted, add them as additional laws rather than dropping the old ones: subtraction on `T`, promotion closure, `copy`/`copyto!`/`fill!`, `mul!`, `similar` with element-type/dims, and the state-geometry inspection ops. Keep the accurate problem-algorithm-pair framing, the algorithm-capability traits, and the corrected note that no keyword bypasses interface checks (`interface_checks` does not exist in the source). Co-Authored-By: Chris Rackauckas <[email protected]>
ChrisRackauckas
marked this pull request as ready for review
July 10, 2026 15:33
test/public_interface.jl pins that Array_and_Number.md mentions the generated `LinearProblem(A, b)` linear system. The type-law rewrite had replaced it with the typed `LinearProblem(A::M, b::C)` form and dropped the bare mention, failing the assertion at public_interface.jl:65. Restore the human-facing summary sentence alongside the typed law. Co-Authored-By: Chris Rackauckas <[email protected]>
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.
Summary
problem_typetrait so downstream packages do not inspect internal problem layout fieldsremake, Jacobian prototypes, plotting, ensemble statistics, RNG handling, and PDE discretizationMotivation
SciMLBase abstract types and extension hooks were substantially less specific than the interface manuals and downstream solver behavior. This made ownership, required methods, mutation rules, trait semantics, and supported data layouts difficult to infer without reading multiple solver packages. The new contracts make those rules explicit at the declarations and render public concrete bindings canonically in the manual.
Process
problem_typefield assumptions with a public traitorigin/master, preserving upstream public-API documentation and removing duplicate canonical entriesVerification
Runic.jlacross all changed Julia files: no changes requiredPkg.test()on Julia 1.10: passed; Remake 4430/4430Ignore this PR until it has been reviewed by @ChrisRackauckas.