lean4-htt/src/Init
Richard Copley 4fe0259354
feat: exact?%: do not report suggestions which do not close the goal (#3974)
This makes `exact?%` behave like `by exact?` rather than `by apply?`.

If the underlying function `librarySearch` finds a suggestion which
closes the goal, use it (and add a code action). Otherwise log an error
and use `sorry`. The error is either
```text
`exact?%` didn't find any relevant lemmas
```
or
```text
`exact?%` could not close the goal. Try `by apply` to see partial suggestions.
```

---


[Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Useful.20term.20elaborators/near/434863856)

---------

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
2024-04-24 06:07:11 +00:00
..
Control chore: deprecate Option.toBool in favour of Option.isSome (#3866) 2024-04-22 07:20:19 +00:00
Data chore: upstream Std material from Data/List|Array/Init (#3975) 2024-04-24 03:23:25 +00:00
Omega feat: in conv tactic, use try with_reducibe rfl (#3763) 2024-03-29 11:59:45 +00:00
System feat: UTF-8 string validation (#3958) 2024-04-20 18:36:37 +00:00
BinderPredicates.lean chore: upstream set notation (#3339) 2024-02-15 02:08:45 +00:00
ByCases.lean perf: rewrite UnusedVariables lint (#3186) 2024-03-21 12:28:57 +00:00
Classical.lean doc: Classical.choice (#3871) 2024-04-22 06:36:56 +00:00
Coe.lean fix: make Lean.Internal.liftCoeM and Lean.Internal.coeM unfold (#3404) 2024-02-27 22:17:46 +00:00
Control.lean feat: add ExceptCpsT 2021-02-27 18:44:24 -08:00
Conv.lean chore: reorganising to reduce imports (#3790) 2024-03-27 11:15:01 +00:00
Core.lean fix: replace unary Nat.succ simp rules with simprocs (#3808) 2024-04-04 23:15:26 +00:00
Data.lean feat: show diffs when #guard_msgs fails (#3912) 2024-04-18 15:09:44 +00:00
Dynamic.lean chore: snake-case attributes (part 2) 2022-10-19 09:28:08 -07:00
Ext.lean chore: reorganising to reduce imports (#3790) 2024-03-27 11:15:01 +00:00
GetElem.lean chore: extend GetElem with getElem! and getElem? (#3694) 2024-03-28 01:42:00 +00:00
Guard.lean feat: upstream guard_expr (#3297) 2024-02-11 23:25:04 +00:00
Hints.lean fix: Not should not be reducible, special support for Ne 2021-02-15 17:36:11 -08:00
MacroTrace.lean chore: reorganising to reduce imports (#3790) 2024-03-27 11:15:01 +00:00
Meta.lean chore: extend GetElem with getElem! and getElem? (#3694) 2024-03-28 01:42:00 +00:00
MetaTypes.lean doc: fix simp configuration option default value for decide (#3894) 2024-04-12 22:02:08 +00:00
Notation.lean feat: improve @[deprecated] attr (#3968) 2024-04-23 17:00:32 +00:00
NotationExtra.lean chore: reorganising to reduce imports (#3790) 2024-03-27 11:15:01 +00:00
Omega.lean chore: add missing copyright headers (#3411) 2024-02-20 01:49:55 +00:00
Prelude.lean feat: shorten auto-generated instance names (#3089) 2024-04-13 18:08:50 +00:00
PropLemmas.lean feat: upstream apply helper tactics from Mathlib (#3670) 2024-03-17 06:47:56 +00:00
RCases.lean doc: typo in rcases docs (#3796) 2024-03-28 07:31:01 +00:00
ShareCommon.lean chore: snake-case attributes (part 2) 2022-10-19 09:28:08 -07:00
SimpLemmas.lean chore: bool and prop lemmas for Mathlib compatibility and improved confluence (#3508) 2024-03-04 23:56:30 +00:00
Simproc.lean chore: fix simproc doc-string (#3800) 2024-03-28 17:54:52 +00:00
SizeOf.lean doc: documentation for Init.SizeOf 2022-08-17 14:48:10 -07:00
SizeOfLemmas.lean fix: protect sizeOf lemmas 2023-07-19 08:50:59 +02:00
System.lean feat: Mutex, Condvar 2022-09-05 08:52:46 -07:00
Tactics.lean feat: exact?%: do not report suggestions which do not close the goal (#3974) 2024-04-24 06:07:11 +00:00
TacticsExtra.lean chore: upstream norm_cast tactic (#3322) 2024-02-19 17:49:17 -08:00
Util.lean chore: extend GetElem with getElem! and getElem? (#3694) 2024-03-28 01:42:00 +00:00
WF.lean doc: Leo-Henrik retreat doc (#3869) 2024-04-12 09:14:31 +00:00
WFTactics.lean feat: use omega in default decreasing_trivial (#3503) 2024-02-27 18:53:36 +00:00