Documentation

HexNumberFieldMathlib.Orientation

The orientation records the exact sign of the imaginary part.

The real tag characterizes real values.

Equal imaginary parts have the same orientation, even in different fields.

Equal complex values have the same orientation.

Equal oriented values have equal base values.

theorem Hex.AlgebraicNumber.OrientedIsolation.ext {p : ZPoly} (r s : OrientedIsolation p) (hb : r.base = s.base) (hs : r.side = s.side) :
r = s

Orientation and the base determine all stored data.

Flipping orientation conjugates the represented value.

Half-plane classification depends only on the represented complex value.

Reorienting a matching upper representative succeeds and preserves the root.