def Lean.throwUnknownNameWithSuggestions {α : Type} (constName : Name) (idOrConst : String := "identifier") (declHint : Name := constName) (ref? : Option Syntax := none) (extraMsg : MessageData := MessageData.nil) :
Throw an unknown constant/identifier error message, potentially suggesting alternatives using
suggest_for attributes.
The replacement will mimic the path structure of the original as much as possible if they share a
path prefix: if there is a suggestion for replacing Foo.Bar.jazz with Foo.Bar.baz, then
Bar.jazz will be replaced by Bar.baz unless the resulting constant is ambiguous.