leanprover / leanprover/fp-lean

applyPrim and evaluateM should have different lengths

Open Beginner friendly
#126 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
192
Forks
73
PR merge metrics
No merged PRs in 30d

Description

In https://leanprover.github.io/functional_programming_in_lean/monads/arithmetic.html#further-effects , the functions evaluateM and applyPrim should not be the same width on the page, as it makes it too easy not to notice the difference in the last line.

Cf https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/Further.20Effects.20example.20in.20Functional.20Programming.20in.20Lean

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

Open the Further Effects page at the linked arithmetic.html#further-effects section and compare the displayed evaluateM and applyPrim examples. Check the related Zulip discussion for context; done means the two functions have visibly different widths so the final-line difference is easy to notice.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.