Zulip Chat Archive
Stream: mathlib4
Topic: binary product notation has wrong precedence
Kenny Lau (Jun 08 2025 at 22:05):
import Mathlib.CategoryTheory.Limits.Shapes.BinaryBiproducts
instance : CategoryTheory.Limits.HasBinaryProduct ℕ ℕ := sorry
#check ℕ = ℕ ⨯ ℕ -- @CategoryTheory.Limits.prod Prop ?m.147 (ℕ = ℕ) ℕ
#check ℕ = (ℕ ⨯ ℕ) -- works
Kenny Lau (Jun 08 2025 at 22:08):
/-- Notation for the product -/
notation:20 X " ⨯ " Y:20 => prod X Y
Kenny Lau (Jun 08 2025 at 22:08):
i think this bug is happening because 20 is too low? or maybe this is intended?
Johan Commelin (Jun 09 2025 at 03:51):
Hmmz, I doubt this is intended. Please PR a fix :smiley:
Kenny Lau (Jun 09 2025 at 08:46):
what is the correct number?
Johan Commelin (Jun 09 2025 at 09:54):
Je ne sais pas :shrug:
Aaron Liu (Jun 09 2025 at 10:08):
I seem to remember that equality is 50, so you should make it more than that
Kevin Buzzard (Jun 09 2025 at 21:42):
* is 70 (and Prod is 30)
Last updated: Dec 20 2025 at 21:32 UTC