Zulip Chat Archive

Stream: new members

Topic: Element of \Q^x


Gareth Ma (Mar 03 2024 at 13:31):

How should I construct an element of Q×\mathbb{Q}^{\times}?

def a : ˣ := 2

I can do it explicitly with \<2, 1 / 2, by trivial, by trivial\>, but I was wondering if there's a simpler way, especially since Q\mathbb{Q} is a field

Eric Wieser (Mar 03 2024 at 13:53):

I think there's a docs#Units.mk0

Julian Berman (Mar 03 2024 at 13:56):

That seems to work -- is there a plan to make those h \ne 0 goals default to by positivity eventually so you only need to write def a : ℚˣ := .mk0 2?

Gareth Ma (Mar 03 2024 at 13:57):

Thanks

Eric Wieser (Mar 03 2024 at 13:59):

I think in this case we could consider an ofNat instance

Yaël Dillies (Mar 04 2024 at 02:26):

We can't make those side goals default to positivity (at least naively) because positivity requires a bunch more imports.


Last updated: May 02 2025 at 03:31 UTC