Consider clarification in section 5.1

Open
#162 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Read section 5.1, especially the “The Identity Monad” passage and its quoted error. Clarify the first use of “type-level computation” and explain what the metavariables indicate, then confirm that the revised wording matches the intended explanation of the Identity Monad example.

Written by the indexing model from the issue text.

Description

Confusing

In the The Identity Monad section, it says

failed to synthesize instance
  HAdd Nat Nat (?m.9063 ?m.9065)

"In this error, the application of one metavariable to another indicates that Lean doesn't run the type-level computation backwards."

I think the intent is to imply that one cannot go from Nat via the inverse of the Id function to obtain Id Nat; and that the metavariables stand for the m type application (I think). However, since that was the first mention of "the type-level computation", perhaps the wording could be clarified a little?

Dominant language
Lean
Stars
211
Forks
83
Avg merge
8m
Merged PRs (30d)
5

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/fp-lean

All issues in leanprover/fp-lean

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.