lean4-htt/src/Init
Sebastian Ullrich 7f5fac9d9f
feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359)
This PR adds a `linter.redundantExpose` option (default `true`) that
warns when `@[expose]` or `@[no_expose]` attributes have no effect:

- `@[expose]` on `abbrev` (always exposed) or non-Prop `instance`
(always exposed)
- `@[expose]` on a `def` inside an `@[expose] section` (already exposed
by the section)
- `@[expose]`/`@[no_expose]` in a non-`module` file (no module system)
- `@[no_expose]` on a declaration that wouldn't be exposed by default

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-27 10:33:58 +00:00
..
Control feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359) 2026-04-27 10:33:58 +00:00
Data feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359) 2026-04-27 10:33:58 +00:00
Grind feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359) 2026-04-27 10:33:58 +00:00
GrindInstances feat: add PowIdentity typeclass for grind ring solver (#13086) 2026-04-08 09:05:12 +00:00
Internal feat: unfold and rewrap instances in inferInstanceAs and deriving 2026-03-22 13:25:46 +01:00
Meta feat: new, extensible do elaborator (#12459) 2026-02-21 17:17:29 +00:00
Omega fix: assorted fixes in the string library (#13201) 2026-03-31 06:28:20 +00:00
Sym feat: add control and arrow_telescope simproc DSL primitives (#13048) 2026-03-23 02:19:13 +00:00
System feat: Runtime.hold (#13270) 2026-04-07 08:44:35 +00:00
BinderNameHint.lean feat: add @[backward_defeq] attribute and local useBackward simp option (#13492) 2026-04-27 10:07:59 +00:00
BinderPredicates.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
ByCases.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
CbvSimproc.lean feat: add cbv_simproc infrastructure for user-extensible cbv simplification procedures (#12597) 2026-03-10 10:59:13 +00:00
Classical.lean fix: address unused simp theorem warnings (#12829) 2026-03-06 23:12:03 +00:00
Coe.lean doc: fix typo in Init.Coe module docstring (#11567) 2025-12-10 08:48:55 +00:00
Control.lean chore: turn on new do elaborator in Core (#12656) 2026-03-09 12:38:33 +00:00
Conv.lean chore: disable cbv usage warning (#12986) 2026-03-19 14:12:04 +00:00
Core.lean feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359) 2026-04-27 10:33:58 +00:00
Data.lean chore: more reorganization of strings (#10928) 2025-10-23 11:56:11 +00:00
Dynamic.lean fix: address unused simp theorem warnings (#12829) 2026-03-06 23:12:03 +00:00
Ext.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
GetElem.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
Grind.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
GrindInstances.lean chore: remove public section from end of files (#10684) 2025-10-06 13:30:48 +00:00
Guard.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
Hints.lean feat: enable implicit argument transparency bump (part 2) (#12572) 2026-02-20 03:28:48 +00:00
Internal.lean
LawfulBEqTactics.lean feat: use explicit allowlist instead of transparency bump in whnfMatcher (#13363) 2026-04-24 13:50:30 +00:00
Linter.lean feat: lake: add support for running environment linters (#13431) 2026-04-22 18:17:41 +00:00
MacroTrace.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
Meta.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
MetaTypes.lean refactor: rename instance_reducible to implicit_reducible (#12567) 2026-02-18 22:19:16 +00:00
MethodSpecsSimp.lean
Notation.lean feat: add deprecated_arg attribute (#13011) 2026-03-30 10:20:44 +00:00
NotationExtra.lean feat: use unicode(...) in Init/Notation and elsewhere (#10384) 2026-03-09 22:17:32 +00:00
Omega.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
Prelude.lean feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359) 2026-04-27 10:33:58 +00:00
PropLemmas.lean perf: remove simp annotations (#12977) 2026-03-19 07:58:32 +00:00
RCases.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
ShareCommon.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
SimpLemmas.lean feat: improves simpArrowTelescope simproc (#12153) 2026-01-25 22:29:38 +00:00
Simproc.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
SizeOf.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
SizeOfLemmas.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
Sym.lean feat: add sym_simproc and sym_discharger DSL syntax categories (#13026) 2026-03-21 22:29:25 +00:00
Syntax.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
System.lean chore: remove public section from end of files (#10684) 2025-10-06 13:30:48 +00:00
Tactics.lean chore: revert @[mvcgen_witness_type] attribute (#12882) (#13111) 2026-03-25 14:38:59 +00:00
TacticsExtra.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
Task.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
Try.lean feat: add first_par combinator for try? with grind +locals (#11949) 2026-01-09 21:09:41 +00:00
Util.lean feat: new, extensible do elaborator (#12459) 2026-02-21 17:17:29 +00:00
WF.lean feat: enable implicit argument transparency bump (part 2) (#12572) 2026-02-20 03:28:48 +00:00
WFComputable.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
WFExtrinsicFix.lean feat: add cbv annotations to iterators and strings (#12961) 2026-03-20 11:39:40 +00:00
WFTactics.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
While.lean chore: remove repeat/while macro_rules bootstrap from Init.While (#13479) 2026-04-19 21:01:14 +00:00