Skip to content

fix: remove lossy syntax separator array coercions - #15020

Open
mhuisi wants to merge 1 commit into
leanprover:masterfrom
mhuisi:push-pxquwwnwplst
Open

fix: remove lossy syntax separator array coercions#15020
mhuisi wants to merge 1 commit into
leanprover:masterfrom
mhuisi:push-pxquwwnwplst

Conversation

@mhuisi

@mhuisi mhuisi commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

This PR removes the Array Syntax -> SepArray sep and SepArray sep -> Array Syntax coercions and adds a separator-SourceInfo-preserving TSepArray ks sep -> SepArray sep coercion instead. Fixes an issue where coercing from TSepArray ks sep to SepArray sep would lose the SourceInfo of the separators.

The former coercion is strange because an Array Syntax may be either an array with separators or an array without separators, whereas the latter throws away separators.

@mhuisi mhuisi added the changelog-language Language features and metaprograms label Sep 4, 2026
@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 Sep 4, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Mathlib CI can not be attempted yet, as the nightly-testing-2026-09-03 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Mathlib CI should run now. You can force Mathlib CI using the force-mathlib-ci label. (2026-09-04 12:21:56)

@leanprover-bot leanprover-bot added the builds-manual CI has verified that the Lean Language Reference builds against this PR label Sep 4, 2026
@leanprover-bot

leanprover-bot commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

@mhuisi mhuisi added the downstream Request a downstream-lean4 adaptation PR. label Sep 4, 2026
@downstream-lean4

Copy link
Copy Markdown

The adaptation PR for this PR is leanprover/downstream-lean4#44.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-manual CI has verified that the Lean Language Reference builds against this PR changelog-language Language features and metaprograms downstream Request a downstream-lean4 adaptation PR. 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.

2 participants