[ETS] Prove bounded numeric builtin calls - #365
Closed
CaelmBleidd wants to merge 5 commits into
Closed
CaelmBleidd wants to merge 5 commits into
CaelmBleidd wants to merge 5 commits into
Conversation
Contributor
Member
Author
|
Closing this approach: the current experiment will assume standard builtins and validate model usefulness empirically, without adding source-derived builtin proofs to JacoDB. |
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.
Direct exported TypeScript functions can call
Number.isInteger,Math.abs, and two-argumentMath.min/Math.max, but downstream analysis cannot safely recognize those builtins from a method name alone. Attach an optional source-derived builtin proof to the lowered call and preserve it through Kotlin DTO conversion, with the correctNumberorMathowner.The proof checks default-library symbol identity, supported scalar arguments, module initialization and the evaluated path before the call, including repeated loop bodies. It records the enclosing entry signature and requires a direct isolated runtime entry; consumers must enforce that requirement. Shadowed or overwritten builtins, ambient getter reads, effectful arguments and unsupported call shapes remain unproven. Intrinsic
undefinedguards retain their proofs without admitting project-global shadows.This is a frontend prerequisite for USVM #368 and the bounded numeric Calls campaign. The branch is based on the current
neocommit containing #364 and retains type-only export metadata.Validation: final focused frontend tests (14 proof and 9 import/export cases), typecheck and build; Kotlin proof DTO tests (3) and export tests (8); lowering of six original consumers from pinned TheAlgorithms/TypeScript and es-toolkit sources. Independent core, hygiene and serialization/resource review results are recorded with the local implementation evidence. The earlier full frontend suite passed before the focused fixes; final verification targeted the changed proof and export behavior.