Skip to content

feat: logical model for Float / Float32 <-> IntN / ISize conversions - #14495

Merged
TwoFX merged 1 commit into
leanprover:masterfrom
Rob23oba:float-sint-model
Jul 22, 2026
Merged

feat: logical model for Float / Float32 <-> IntN / ISize conversions#14495
TwoFX merged 1 commit into
leanprover:masterfrom
Rob23oba:float-sint-model

Conversation

@Rob23oba

Copy link
Copy Markdown
Contributor

This PR redefines IntN.toFloat and Float.ofIntN (and the corresponding Float32 and ISize functions) in terms of Float.Model and Float32.Model. The model already existed but was not used because of an oversight.

@github-actions github-actions Bot added the changelog-library Library label Jul 22, 2026
@Rob23oba
Rob23oba marked this pull request as ready for review July 22, 2026 10:27
@Rob23oba
Rob23oba requested a review from kim-em as a code owner July 22, 2026 10:27
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jul 22, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 7d4da399657ab27e4385908291680328c4d855aa --onto 3259610687883ec1ea48c481aba2469f2f83facf. You can force Mathlib CI using the force-mathlib-ci label. (2026-07-22 10:52:11)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 7d4da399657ab27e4385908291680328c4d855aa --onto 49ff95727f98d43984726b26742d17a1ceea9dd5. You can force reference manual CI using the force-manual-ci label. (2026-07-22 10:52:13)

@TwoFX
TwoFX added this pull request to the merge queue Jul 22, 2026
Merged via the queue into leanprover:master with commit 1545cc8 Jul 22, 2026
19 checks passed
robsimmons pushed a commit that referenced this pull request Jul 29, 2026
…ersions (#14495)

This PR redefines `IntN.toFloat` and `Float.ofIntN` (and the
corresponding `Float32` and `ISize` functions) in terms of `Float.Model`
and `Float32.Model`. The model already existed but was not used because
of an oversight.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-library Library toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants