leanprover-community / leanprover-community/mathlib4

refactor: add TC cycles

Open
#2,030 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

In Lean 3, many lemmas are not instances to avoid loops. I think that we should not turn them into instances while porting. Instead, we should turn them into instances all at once after the port is done and see how does it affect build time. For now, we should create a list of these lemmas.

  • normalOfCompactT2;
  • T3Space.mk (any T₀ regular space is a T₃ space);
  • normalSpaceOfT3SecondCountable;
  • compact_t2_tot_disc_iff_tot_sep (the Iff.mp implication);
  • loc_compact_t2_tot_disc_iff_tot_sep;
  • UniformSpace.secondCountable_of_separable

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

No files or tests are named. Start by locating the definitions and existing instance declarations for the six listed lemmas, then review how their typeclass relationships could create cycles. Done means the checklist is complete and the port preserves the intended non-instance declarations until the post-port evaluation.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.