lean4-htt/src/Lean/Util
Leonardo de Moura d748b0c8c9
feat: instantiate tactic parameter optimizer (#10916)
This PR implements parameter optimization for the generated
`instantiate` tactics produced by `finish?`.
We use a simple parameter optimizer that takes two sets as input: the
lower and upper bounds.
The lower bound consists of the theorems actually used in the proof
term, while the upper bound includes all the theorems instantiated in a
particular theorem instantiation step.
The lower bound is often sufficient to replay the proof, but in some
cases, additional theorems must be included because a theorem
instantiation may contribute to the proof by providing terms and many
not be present in the final proof term.
2025-10-23 01:22:33 +00:00
..
CollectAxioms.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
CollectFVars.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
CollectLevelMVars.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
CollectLevelParams.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
CollectLooseBVars.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
CollectMVars.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
Diff.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
FindExpr.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
FindLevelMVar.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
FindMVar.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
FoldConsts.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
ForEachExpr.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
ForEachExprWhere.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
FVarSubset.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
HasConstCache.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
Heartbeats.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
InstantiateLevelParams.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
LakePath.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
LeanOptions.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
MonadBacktrack.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
MonadCache.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
NumApps.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
NumObjs.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
OccursCheck.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
ParamMinimizer.lean feat: instantiate tactic parameter optimizer (#10916) 2025-10-23 01:22:33 +00:00
Path.lean chore: move some material out of Init.Data.String.Basic (#10893) 2025-10-22 16:31:08 +00:00
PPExt.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
Profile.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
Profiler.lean doc: fix url to profile.ts source (#10628) 2025-10-07 12:41:04 +00:00
PtrSet.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
RecDepth.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
Recognizers.lean refactor: introduce SameCtorUtils (#10316) 2025-09-10 14:32:58 +00:00
ReplaceExpr.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
ReplaceLevel.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
Reprove.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
SafeExponentiation.lean feat: improve grind cutsat support for Fin n when n is not a numeral (#10022) 2025-08-21 17:25:52 +00:00
SCC.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
ShareCommon.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
Sorry.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
SortExprs.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
TestExtern.lean feat: overhaul meta system (#10362) 2025-09-17 21:04:29 +00:00
Trace.lean chore: rename String.Pos to String.Pos.Raw (#10624) 2025-10-01 07:45:24 +00:00