Skip to content

Conversation

@kim-em
Copy link
Collaborator

@kim-em kim-em commented Jun 12, 2025

This PR adds grind annotations for List/Array/Vector.ofFn theorems and additional List.Impl find operations.

The annotations are added to theorems that correspond to those already annotated in the List implementation, ensuring consistency across all three container types (List, Array, Vector) for ofFn operations and related functionality.

Key theorems annotated include:

  • Element access theorems (getElem_ofFn, getElem?_ofFn)
  • Construction and conversion theorems (ofFn_zero, toList_ofFn, toArray_ofFn)
  • Membership theorems (mem_ofFn)
  • Head/tail operations (back_ofFn)
  • Monadic operations (ofFnM_zero, toList_ofFnM, toArray_ofFnM, idRun_ofFnM)
  • List.Impl find operations (find?_singleton, find?_append, findSome?_singleton, findSome?_append)

@kim-em kim-em added the changelog-library Library label Jun 12, 2025
@kim-em kim-em enabled auto-merge June 12, 2025 17:48
@kim-em kim-em added this pull request to the merge queue Jun 12, 2025
@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 Jun 12, 2025
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase c2876a1a6a42e6df458ffb37abbc3868632beb58 --onto faffe863343211d03d07d4ef19d90a2aa9d6fc8c. You can force Mathlib CI using the force-mathlib-ci label. (2025-06-12 18:18:41)

auto-merge was automatically disabled June 12, 2025 18:22

Pull Request is not mergeable

Merged via the queue into master with commit b4660c9 Jun 12, 2025
18 of 19 checks passed
algebraic-dev pushed a commit to algebraic-dev/lean4 that referenced this pull request Jun 18, 2025
…Impl (leanprover#8749)

This PR adds grind annotations for `List/Array/Vector.ofFn` theorems and
additional `List.Impl` find operations.

The annotations are added to theorems that correspond to those already
annotated in the List implementation, ensuring consistency across all
three container types (List, Array, Vector) for ofFn operations and
related functionality.

Key theorems annotated include:
- Element access theorems (`getElem_ofFn`, `getElem?_ofFn`)
- Construction and conversion theorems (`ofFn_zero`, `toList_ofFn`,
`toArray_ofFn`)
- Membership theorems (`mem_ofFn`)
- Head/tail operations (`back_ofFn`)
- Monadic operations (`ofFnM_zero`, `toList_ofFnM`, `toArray_ofFnM`,
`idRun_ofFnM`)
- List.Impl find operations (`find?_singleton`, `find?_append`,
`findSome?_singleton`, `findSome?_append`)
wkrozowski pushed a commit to wkrozowski/lean4 that referenced this pull request Jun 24, 2025
…Impl (leanprover#8749)

This PR adds grind annotations for `List/Array/Vector.ofFn` theorems and
additional `List.Impl` find operations.

The annotations are added to theorems that correspond to those already
annotated in the List implementation, ensuring consistency across all
three container types (List, Array, Vector) for ofFn operations and
related functionality.

Key theorems annotated include:
- Element access theorems (`getElem_ofFn`, `getElem?_ofFn`)
- Construction and conversion theorems (`ofFn_zero`, `toList_ofFn`,
`toArray_ofFn`)
- Membership theorems (`mem_ofFn`)
- Head/tail operations (`back_ofFn`)
- Monadic operations (`ofFnM_zero`, `toList_ofFnM`, `toArray_ofFnM`,
`idRun_ofFnM`)
- List.Impl find operations (`find?_singleton`, `find?_append`,
`findSome?_singleton`, `findSome?_append`)
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