Numerals of the form 2 ^ m * 3 ^ n #
A numeral whose only prime factors are 2 and 3 — 6, 12, 48, 864, 1728 — is a unit as
soon as 2 and 3 are, and in a nontrivial ring it is nonzero. Such numerals are the denominators
of the classical invariants of a Weierstrass equation, so the two statements below are the side
conditions that a computation over a ring where 2 and 3 are invertible keeps presenting,
field_simp included.
Both are phrased with the numeral as a hypothesis, x = 2 ^ m * 3 ^ n, rather than with
2 ^ m * 3 ^ n in the conclusion: x is then a numeral literal at the use site and the exponents
are supplied by norm_num, which is what makes the lemmas usable on 48 or 1728 without a
preparatory rewrite.
Main results #
TauCeti.isUnit_of_eq_two_pow_mul_three_pow: in a semiring where2and3are units, so is2 ^ m * 3 ^ n.TauCeti.ne_zero_of_eq_two_pow_mul_three_pow: the same conclusion as nonvanishing, stated forInvertibleinstances, which is how a field of characteristic other than2and3carries the hypothesis (Mathlib's Weierstrass normal-form API asks for it in that form too).
A numeral built from 2 and 3 is nonzero where 2 and 3 are invertible. For a
hypothesis in IsUnit form, use TauCeti.isUnit_of_eq_two_pow_mul_three_pow and
IsUnit.ne_zero.