Zulip Chat Archive

Stream: mathlib4

Topic: toDual/ofDual alignment


Johan Commelin (Jan 05 2023 at 21:38):

/-- `toDual` is the identity function to the `OrderDual` of a linear order.  -/
def toDual : α  αᵒᵈ :=
  Equiv.refl _

/-- `ofDual` is the identity function from the `OrderDual` of a linear order.  -/
def ofDual : αᵒᵈ  α :=
  Equiv.refl _

should these not have #align statements?

Chris Hughes (Jan 05 2023 at 22:08):

Yes. I was wondering why they never seemed to work

Johan Commelin (Jan 06 2023 at 05:39):

Done in mathlib4#1366

Yakov Pechersky (Jan 06 2023 at 05:42):

I hadn't added them because this file was ported before the "mathport outputs an align statement for every decl" was turned on. And these two decls did auto align by mathport as it is

Johan Commelin (Jan 06 2023 at 05:44):

Aha, thanks for the explanation


Last updated: Dec 20 2023 at 11:08 UTC