Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: PProd and MProd syntax (part 1) #4747

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

nomeata
Copy link
Collaborator

@nomeata nomeata commented Jul 15, 2024

the internal constructions for structural and well-founded recursion
use plenty of PProd and MProd, and reading these, deeply
nested and in prefix notation, is unnecessarily troublesome.

Therefore this introduces notations

a ×ₚ b   -- PProd a b
a ×ₘ b   -- MProd a b
()ₚ      -- PUnit.unit
(x,y,z)ₚ -- PProd.mk x (PProd.mk y z)
(x,y,z)ₘ -- MProd.mk x (MProd.mk y z)

(This is part 1, the rest will follow in #4730 after a stage0 update.)

the internal constructions for structural and well-founded recursion
use plenty of `PProd` and `MProd`, and reading these, deeply
nested and in prefix notation, is unnecessarily troublesome.

Therefore this introduces notations
```
a ×ₚ b   -- PProd a b
a ×ₘ b   -- MProd a b
()ₚ      -- PUnit.unit
(x,y,z)ₚ -- PProd.mk x (PProd.mk y z)
(x,y,z)ₘ -- MProd.mk x (MProd.mk y z)
```

(This is part 1, the rest will follow after a stage0 update)
@nomeata nomeata requested a review from Kha as a code owner July 15, 2024 14:04
@nomeata nomeata added the will-merge-soon …unless someone speaks up label Jul 15, 2024
@nomeata nomeata enabled auto-merge July 15, 2024 14:04
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc July 15, 2024 14:15 Inactive
@nomeata nomeata added this pull request to the merge queue Jul 15, 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 Jul 15, 2024
@leanprover-community-mathlib4-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 de96b6d8a71c50692f3589ad6a354546b58c57a1 --onto 5f70c1ca64a2c05a5866c47b9eb80a92034433ec. (2024-07-15 14:21:48)

Merged via the queue into master with commit dc65f03 Jul 15, 2024
16 checks passed
@nomeata nomeata deleted the joachim/joachim/pprod-syntax-part1 branch July 15, 2024 14:54
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 will-merge-soon …unless someone speaks up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants