Zulip Chat Archive
Stream: lean4
Topic: exact? doesn't seem to work
A. (Jul 25 2025 at 10:40):
import Mathlib
open scoped Topology
example {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] [T1Space Y]
{f : X → Y} {x : X} {y : Y} : Filter.Tendsto f (𝓝 x) (𝓝 y) → f x = y := by
exact?
example {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] [T1Space Y]
{f : X → Y} {x : X} {y : Y} : Filter.Tendsto f (𝓝 x) (𝓝 y) → f x = y :=
eq_of_tendsto_nhds
A. (Jul 25 2025 at 10:42):
exact?could not close the goal.
Robin Arnez (Jul 25 2025 at 10:46):
exact? first runs intros; then the goal is f x = y which is too generic for exact? (since it doesn't contain any constants except equality)
A. (Jul 25 2025 at 10:47):
Oh OK
Robin Arnez (Jul 25 2025 at 10:49):
In general, tools like loogle.lean-lang.org might be more useful. You can find the same lemma using
@loogle Filter.Tendsto _ (nhds _) (nhds _) -> _ = _
loogle (Jul 25 2025 at 10:49):
:search: eq_of_tendsto_nhds, IsDenseInducing.extend_eq_at'
Robin Arnez (Jul 25 2025 at 10:49):
(#loogle Filter.Tendsto _ (nhds _) (nhds _) -> _ = _ within Lean)
Last updated: Dec 20 2025 at 21:32 UTC