Zulip Chat Archive
Stream: lean4
Topic: Implicit arguments in Equivalence
Dan Velleman (Dec 02 2022 at 21:09):
I have two questions about the implicit arguments in the definition of Equivalence in Lean.Init.Core.
symmandtransuse{...}. Should they be{{...}}? That's what was used in the definitions ofsymmetricandtransitivein Lean 3.- Suppose I have
e : Equivalence r. Then the type ofe.symmis∀ {x y}, r x y → r y x. Suppose I want to specify the arguments explicitly. It seems like I should be able to use@e.symm, or perhaps@(e.symm), but that doesn't seem to work. What's the correct syntax to get something that acts like∀ (x y), r x y → r y x?
Jireh Loreaux (Dec 02 2022 at 22:26):
- It's possible
Equivalencewas around before semi-implicit arguments existed in Lean 4, I'm not sure though. (Hmmm.... Interesting to note thatSymmetricuses semi-implicits) fun _x _y => e.symmworks.
Last updated: May 02 2025 at 03:31 UTC