lean4-htt/src/Lean/LibrarySuggestions/Default.lean
Kim Morrison bc9cc05082
feat: include current file in default premise selector (#11168)
This PR changes the default library suggestions (e.g. for `grind
+suggestions` or `simp_all? +suggestions) to include the theorems from
the current file in addition to the output of Sine Qua Non.
2025-11-14 01:31:30 +00:00

27 lines
848 B
Text

/-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
import all Lean.LibrarySuggestions.SineQuaNon
/-!
# Default library suggestions engine
This module sets the default library suggestions engine to "Sine Qua Non",
along with the theorems from the current file.
.
Any module that imports this (directly or transitively) will have library suggestions enabled.
-/
namespace Lean.LibrarySuggestions
-- Set the default library suggestions engine to
-- a combination of "Sine Qua Non" and the theorems from the current file.
-- For now we just intersperse the results, but in future we should re-rank them.
set_library_suggestions open Lean.LibrarySuggestions in sineQuaNonSelector.intersperse currentFile
end Lean.LibrarySuggestions