Zulip Chat Archive
Stream: mathlib4
Topic: What does "unexpected syntax" mean?
Arien Malec (Jan 17 2023 at 06:48):
I have the line in a proof in mathlib4#1464
change (TProd.mk l f ∈ Set.TProd l t ↔ ∀ i : ι, i ∈ l → f i ∈ t i) at h
which gives unexpected syntax
& I'm not exactly sure what that's supposed to mean?
Kevin Buzzard (Jan 17 2023 at 08:17):
What happens if you try let foo := TProd.mk l f...t i
? Does that typecheck?
Arien Malec (Jan 17 2023 at 15:03):
First thing I tried & same issue :smiling_face_with_tear:
Kyle Miller (Jan 17 2023 at 15:10):
Does change _ at _
syntax exist yet?
Kyle Miller (Jan 17 2023 at 15:11):
The only change ... at ...
in mathlib4 I've seen is in a porting note.
Kyle Miller (Jan 17 2023 at 15:11):
Here's a workaround. Change your have
to
have h : TProd.mk l f ∈ Set.TProd l t ↔ ∀ i : ι, i ∈ l → f i ∈ t i := by
change f ∈ TProd.mk l ⁻¹' Set.TProd l t ↔ f ∈ { x | x ∈ l }.pi t
rw [mk_preimage_tprod l t]
Last updated: Dec 20 2023 at 11:08 UTC