lean4-htt/src/Lean/Elab
jrr6 b4b878b2d0
fix: prevent exact? and apply? from suggesting invalid tactics (#7192)
This PR prevents `exact?` and `apply?` from suggesting tactics that
correspond to correct proofs but do not elaborate, and it allows these
tactics to suggest `expose_names` when needed.

These tactics now indicate that a non-compiling term was generated but
do not suggest that that term be inserted. `exact?` also no longer
suggests that the user try `apply?` if no partial suggestions were
found.

This addresses part of #5407 but does not achieve the exact expected
behavior therein (due to #6122).
2025-02-25 15:24:09 +00:00
..
Deriving feat: Elab.Deriving trace on applyDerivingHandlers (#7173) 2025-02-21 09:27:41 +00:00
InfoTree feat: inlay hint refinements (#6959) 2025-02-06 16:43:56 +00:00
PreDefinition feat: fun_induction and fun_cases tactics (#7069) 2025-02-16 10:59:56 +00:00
Quotation
Tactic fix: prevent exact? and apply? from suggesting invalid tactics (#7192) 2025-02-25 15:24:09 +00:00
App.lean feat: refactor of find functions on List/Array/Vector (#6833) 2025-01-30 01:14:21 +00:00
Arg.lean
Attributes.lean
AutoBound.lean
AuxDef.lean
BinderPredicates.lean
Binders.lean
BindersUtil.lean
BuiltinCommand.lean feat: allow updating binders to and from strict- and instance-implicit (#6634) 2025-02-05 15:43:54 +00:00
BuiltinEvalCommand.lean
BuiltinNotation.lean
BuiltinTerm.lean
Calc.lean chore: add missing diff-exposing in type/value mismatch errors (#6484) 2024-12-31 17:47:12 +00:00
CheckTactic.lean chore: add missing diff-exposing in type/value mismatch errors (#6484) 2024-12-31 17:47:12 +00:00
Command.lean fix: do not cancel async elaboration tasks (#7175) 2025-02-21 17:24:36 +00:00
ComputedFields.lean
Config.lean
Declaration.lean feat: inlay hints for auto-implicits (#6768) 2025-02-04 17:36:49 +00:00
DeclarationRange.lean feat: inlay hints for auto-implicits (#6768) 2025-02-04 17:36:49 +00:00
DeclModifiers.lean
DeclNameGen.lean
DeclUtil.lean
DefView.lean feat: auto-implicit inlay hint tooltip & instance inlay hints (#7112) 2025-02-17 15:34:35 +00:00
Deriving.lean
Do.lean
ElabRules.lean
Eval.lean
Exception.lean
Extra.lean refactor: elaborate forIn notation without extra let (#6977) 2025-02-08 10:32:34 +00:00
Frontend.lean chore: remove save tactic (#7047) 2025-02-12 09:19:30 +00:00
GenInjective.lean
GuardMsgs.lean
Import.lean feat: frontend & server support for plugins (#6893) 2025-02-04 23:36:18 +00:00
Inductive.lean feat: inlay hints for auto-implicits (#6768) 2025-02-04 17:36:49 +00:00
InfoTree.lean
InfoTrees.lean feat: #info_trees in command (#6964) 2025-02-06 03:11:53 +00:00
InheritDoc.lean
LetRec.lean
Level.lean
Macro.lean
MacroArgUtil.lean
MacroRules.lean
Match.lean feat: allow anonymous equality proofs in match expressions (#6853) 2025-02-04 16:09:21 +00:00
MatchAltView.lean
MatchExpr.lean
Mixfix.lean
MutualDef.lean fix: incremental goal state requests select incomplete snapshot (#6887) 2025-02-14 11:53:24 +00:00
MutualInductive.lean fix: show error messages on name conflicts in mutual blocks (#6939) 2025-02-05 04:23:24 +00:00
Notation.lean
Open.lean
ParseImportsFast.lean feat: align take/drop/extract across List/Array/Vector (#6860) 2025-01-30 01:24:25 +00:00
PatternVar.lean
PreDefinition.lean
Print.lean
Quotation.lean feat: align lemmas about List.getLast(!?) with Array/Vector.back(!?) (#7205) 2025-02-24 11:48:43 +00:00
RecAppSyntax.lean
RecommendedSpelling.lean feat: recommended_spelling command (#6869) 2025-02-03 11:15:52 +00:00
SetOption.lean
StructInst.lean feat: align List/Array/Vector.zip/zipWith/zipWithAll/unzip (#6840) 2025-01-29 07:58:17 +00:00
Structure.lean chore: post-#7100 cleanup (#7196) 2025-02-23 22:46:22 +00:00
Syntax.lean
SyntheticMVars.lean
Tactic.lean chore: remove save tactic (#7047) 2025-02-12 09:19:30 +00:00
Term.lean fix: do not cancel async elaboration tasks (#7175) 2025-02-21 17:24:36 +00:00
Time.lean
Util.lean fix: convert kernel interrupt into elab interrupt (#6988) 2025-02-07 15:55:32 +00:00