Classifying the first dyadic flag #
dyadicFirstFlagSign d B r N classifies the first numerator in the flag window with margin
1/d, below the exclusive endpoint r. It returns one below one half, minus one above,
and zero when neither case occurs. This is a classifier of supplied dyadic values, not
sign recovery for an implicit integer. The operation is total for every natural parameter.
Binary polynomial-time margin denominator and endpoint, unary polynomial-time precision,
and a uniform F_a numerator evaluator give an F_(a+2) signed binary output. The semantic
bridge to FirstCircleFlag needs only 0 < d, with no CRT or approximation assumption.
Main definitions #
Cslib.Complexity.dyadicFirstFlagSign: total classifier at the first dyadic flag.
Main results #
Cslib.Complexity.CountingFunction.dyadicFirstFlagSign_mem: the two-level bound.Cslib.Complexity.dyadicFirstFlagSign_eq_one_iff: the first flag is below one half.Cslib.Complexity.dyadicFirstFlagSign_eq_neg_one_iff: the first flag is above one half.Cslib.Complexity.dyadicFirstFlagSign_eq_zero_iff: neither strict side occurs.
Output one means that a first circle flag below the endpoint lies below one half.
Output minus one means that the first circle flag lies above one half. Uniqueness of the first flag rules out the competing positive test.
Output zero means that neither strict side occurs at a first flag. In particular, a first value exactly one half gives zero.
Classifying the first dyadic flag costs two function levels beyond its numerator evaluator. The binary margin denominator, unary precision, binary endpoint, scale and all arithmetic tests are charged. This is a classifier certificate and assumes no integer sign-correctness property.