Zulip Chat Archive

Stream: lean4

Topic: Implicit parameters in standard library


Robin Arnez (May 07 2025 at 16:44):

I think we should clarify exactly when to use and when not to use implicit parameters for theorems in core lean. The current convention seems to opt for more implicit parameters while older theorems often use less implicits but in general the use of implicits vs explicits is inconsistent across the codebase. Also, the issue of implicit parameters recently came up as lean4#8244. Ideally, we should get a consensus on how to approach implicits and then put it into the standard library docs.

Markus Himmel (May 08 2025 at 08:15):

Yes, a policy is in the works (possibly pending some coordination between core and mathlib). Once there is a draft I can share it here for discussion.

Yaël Dillies (May 08 2025 at 08:37):

Just adding that I've been writing a document explaining the current convention in mathlib


Last updated: Dec 20 2025 at 21:32 UTC