Zulip Chat Archive
Stream: mathlib4
Topic: Why are the operators on Real irreducible?
Daniel Weber (Jul 29 2024 at 05:36):
Looking at file#Mathlib/Data/Real/Basic, I can see that the operators on Real (zero, one, addition, multiplication, etc.) are irreducible_def
s. What is the design thought behind that?
Mario Carneiro (Jul 29 2024 at 11:58):
you don't want to unfold them, and lean will sometimes unfold them anyway resulting in performance issues (when e.g. trying to prove that sin x = cos x
by unfolding literally everything and ending up with some goal like Real.add = Real.sub
which it wants to keep unfolding...)
Last updated: May 02 2025 at 03:31 UTC