Documentation

TauCeti.Algebra.Ring.TwoPowMulThreePow

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 #

theorem TauCeti.isUnit_of_eq_two_pow_mul_three_pow {R : Type u_1} [Semiring R] {x : R} {m n : ℕ} (h2 : IsUnit 2) (h3 : IsUnit 3) (hx : x = 2 ^ m * 3 ^ n) :

A numeral built from 2 and 3 is a unit once 2 and 3 are.

theorem TauCeti.ne_zero_of_eq_two_pow_mul_three_pow {R : Type u_1} [Semiring R] {x : R} {m n : ℕ} [Nontrivial R] [Invertible 2] [Invertible 3] (hx : x = 2 ^ m * 3 ^ n) :
x ≠ 0

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.