Conversation
A raw polymorphic `Array.init` (e.g. from `subarray256 x i = Array256.init (fun k => x.[256*i+k])`) had no circuit binding: only the monomorphic `ainit` wrapper is bindable, since `bind op`/`ainit` fixes the element width at bind time. So a spec built on `Array.init` fell into the reduce-on-demand fallback -- full reduction per element access -- which could take minutes to translate a single postcondition. Add a `painit` bv-operator kind that binds an array `init` BY PATH while leaving the element lane-width polymorphic; the width is resolved from the concrete components when the operator is translated at a concrete element type.
Gustavo2622
approved these changes
Jul 10, 2026
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.
A raw polymorphic
Array.init(e.g. fromsubarray256 x i = Array256.init (fun k => x.[256*i+k])) had no circuit binding: only themonomorphic
ainitwrapper is bindable, sincebind op/ainitfixes theelement width at bind time. So a spec built on
Array.initfell into thereduce-on-demand fallback -- full reduction per element access -- which
could take minutes to translate a single postcondition.
Add a
painitbv-operator kind that binds an arrayinitBY PATH whileleaving the element lane-width polymorphic; the width is resolved from the
concrete components when the operator is translated at a concrete element
type.