Lean documentation doesn't say which version a function is available from or indicate that its describing master

Open
#16,960 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
57/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Domain
documentation

Research direction

Start by checking how the Lean documentation is built and published, then compare its release handling with the Python or CMake documentation mentioned in the issue. The suggested direction is to provide documentation for each release; done means users can identify which Lean release a documentation page describes and find docs matching their release. The issue does not name specific files or tests.

Written by the indexing model from the issue text.

Description

I am trying to learn Lean and got stuck when I was trying to use Vector.modify. I'm using the latest version of Lean, it's right there in the docs, and I think I've written the code right but of course I'm not sure. Yet it's saying that modify doesn't exist in the environment.

Google search's default AI can't figure it out, hallucinating all sorts of things. I had to turn to a more powerful AI model to identify that Vector.modify was only added really recently in #16116.

There's zero indication on the documentation page that it is documentation for master, not the latest release. The standard solutions to this problem are:

  1. Have a copy of the docs available for each release (see the Python or CMake docs for example).
  2. Add "Available since " to each function. Rust does this, and Python kind of does it a bit.

The former is obviously easier since it's only infrastructure changes.

Dominant language
Lean
Stars
10.5k
Forks
1.2k
Avg merge
19h 36m
Merged PRs (30d)
323

Getting set up

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.

More from leanprover/lean4

All issues in leanprover/lean4

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.