leanprover / leanprover/reference-manual

Built-in operators and their precedence

Open
#271 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

doc-request
Dominant language
Lean
Stars
129
Forks
67
Avg merge
1d 15h
Merged PRs (30d)
16

Description

It's possible that I somehow missed it but I couldn't find a list of all the built-in operators (like +, -, %, <, etc.) with their relative precedence and associativity.

Here are some examples from other languages to get a better idea of what I'm looking for:

I believe the list of operators for Lean can be found here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Lean operator definitions linked in src/Init/Notation.lean, then inspect the reference manual's existing language-reference structure. Done means adding a clear table of built-in operators with their relative precedence and associativity, using the linked C++ and JavaScript examples as models.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.