Zulip Chat Archive

Stream: Is there code for X?

Topic: Equiv version of `function.swap`


Anatole Dedecker (Jun 08 2022 at 22:21):

Do we have (Π a b, φ a b) ≃ (Π b a, φ a b) (which is docs#function.swap both ways) ? I couldn't find anything in the usual logic/equiv/basic, and library_search seems to agree, but it feels weird that we don't have it

Yaël Dillies (Jun 09 2022 at 07:19):

Maybe we could bundle docs#matrix.transpose as an equiv using this?

Eric Wieser (Jun 09 2022 at 07:30):

I think that bundling would lose us notation (and so shouldn't replace transpose)

Eric Wieser (Jun 09 2022 at 07:30):

But we do already have docs#matrix.transpose_ring_equiv

Eric Wieser (Jun 09 2022 at 07:31):

(and weaker versions)

Yaël Dillies (Jun 09 2022 at 07:36):

This works though.

import order.synonym

variables {α : Type*} (a : order_dual α)

#check a.of_dual -- ⇑order_dual.of_dual a : α
#check a.to_dual -- ⇑order_dual.to_dual a : αᵒᵈᵒᵈ

Eric Wieser (Jun 09 2022 at 07:37):

I'm talking about Mᵀ notation (in the pretty printer)


Last updated: Dec 20 2023 at 11:08 UTC