leanprover-community / leanprover-community/mathlib4

`mk_iff` adds too many explicit arguments

Open
#9,129 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

t-meta
Dominant language
Lean
Stars
4.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Tagging a structure with mk_iff and ext results in lemmas whose arguments are all explicit, even though our convention stipulates that

  • arguments to an iff lemma should all be implicit
  • an ext lemma should have its arguments implicit except for the one of the form ∀ x, f x = g x (or ⇑f = ⇑g)
  • lemmas generated by @[mk_iff] do not follow the lowerCamelCase convention.

See eg https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/implicit.20mk_iff

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 locating the implementations and generated-lemma tests for mk_iff and ext, then review the linked Zulip discussion for the intended argument conventions. Done means mk_iff produces implicit arguments for iff lemmas, ext keeps only the function-equality argument explicit, and generated lemma names follow lowerCamelCase.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.