Skip to content

feat: preliminary work for parent projections in StructureInfo#5841

Merged
kmill merged 1 commit intoleanprover:masterfrom
kmill:parentprojs
Oct 25, 2024
Merged

feat: preliminary work for parent projections in StructureInfo#5841
kmill merged 1 commit intoleanprover:masterfrom
kmill:parentprojs

Conversation

@kmill
Copy link
Copy Markdown
Collaborator

@kmill kmill commented Oct 25, 2024

This adds a parentInfo field to the StructureInfo, which will eventually be populated with the actual parents of a structure. This is work toward #1881. Also documents fields of the structure info data structures.

Requires a stage0 update before the next steps.

This adds a `parentInfo` field to the `StructureInfo`, which will eventually be populated with the actual parents of a structure. This is work toward leanprover#1881.

Requires a stage0 update before the next steps.
@kmill kmill enabled auto-merge October 25, 2024 18:36
@kmill kmill added this pull request to the merge queue Oct 25, 2024
@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 Oct 25, 2024
@ghost
Copy link
Copy Markdown

ghost commented Oct 25, 2024

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 4c0d12b3f1e8fdb4002eb01f8f5ff9be9ec4b25b --onto 193b6f2bec332ac0bce33e10856a96163d4be456. (2024-10-25 18:58:27)

Merged via the queue into leanprover:master with commit 266ae42 Oct 25, 2024
kmill added a commit to kmill/lean4 that referenced this pull request Oct 26, 2024
Followup to leanprover#5841. Makes the `structure` command populate the new `parentInfo` field.

This will require a stage0 update to fully take effect.

Breaking change: now `getParentStructures` is `getStructureSubobjects`. Adds `getStructureParentInfo` for getting all the immediate parents. Note that the set of subobjects is neither a subset nor a superset of the immediate parents.

Closes leanprover#1881
tobiasgrosser pushed a commit to opencompl/lean4 that referenced this pull request Oct 27, 2024
…nprover#5841)

This adds a `parentInfo` field to the `StructureInfo`, which will
eventually be populated with the actual parents of a structure. This is
work toward leanprover#1881. Also documents fields of the structure info data
structures.

Requires a stage0 update before the next steps.
kmill added a commit to kmill/lean4 that referenced this pull request Oct 27, 2024
Followup to leanprover#5841. Makes the `structure` command populate the new `parentInfo` field.

This will require a stage0 update to fully take effect.

Breaking change: now `getParentStructures` is `getStructureSubobjects`. Adds `getStructureParentInfo` for getting all the immediate parents. Note that the set of subobjects is neither a subset nor a superset of the immediate parents.

Closes leanprover#1881
github-merge-queue bot pushed a commit that referenced this pull request Oct 28, 2024
Followup to #5841. Makes the `structure` command populate the new
`parentInfo` field with all the structures in the `extends` clause.

This will require a stage0 update to fully take effect.

Breaking change: now it's a warning if a structure extends a parent
multiple times.

Breaking change: now `getParentStructures` is `getStructureSubobjects`.
Adds `getStructureParentInfo` for getting all the immediate parents.
Note that the set of subobjects is neither a subset nor a superset of
the immediate parents.

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

Labels

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.

1 participant