The pool of the candidate moduli #
The contracts of the stages of the choice of the moduli on the pool of the candidates
(Ratpoints.ModulusCandidate), for every property of the candidates that the stages keep: the
stages drop candidates (Ratpoints.dropUsed, Ratpoints.takeEntries, Ratpoints.dropComposites),
sort them (Ratpoints.sortFrom) and key them again (Ratpoints.rankSecond), and leave the cut
points within the pool, with only primes that say more than coprimality from the end of the second
stage on (Ratpoints.NfEqZeroFrom); for any values of the doubles of the cost model, which no
contract reads.
Main definitions #
Ratpoints.NfEqZeroFrom: the candidates from a position on count no factors.
Main statements #
Ratpoints.takeEntries_spec,Ratpoints.dropComposites_spec,Ratpoints.bestByR_spec: the contracts of the loops on the pool.Ratpoints.firstStages_spec,Ratpoints.firstStages_run: the first two stages.Ratpoints.mem_of_mem_sortFrom,Ratpoints.forall_mem_mapIdx_key,Ratpoints.forall_mem_rankSecond: the sort keeps the candidates, and keying again keeps every property of them that reads no key.
The pool #
The invariant of the loop of Ratpoints.dropUsed.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The contract of Ratpoints.dropUsed: it keeps a property Q of the candidates and the position
start within the pool, since it only drops candidates from start on.
The invariant of the loop of Ratpoints.takeEntries.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The contract of Ratpoints.takeEntries, for any values of the doubles and any rule of the first
stage: it keeps a property Q of the candidates, since it only drops candidates, and the candidates
taken from start on lie within the pool.
The candidates of the pool pool from the position s on have no factors counted: primes that
say more than coprimality.
Instances For
The invariant of the loop of Ratpoints.dropComposites.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The contract of Ratpoints.dropComposites: it keeps a property Q of the candidates and the
position start within the pool, and the candidates from start on count no factors
(Ratpoints.NfEqZeroFrom).
The first two stages keep the property Q of the candidates, which reads no key, and leave the
cut points sp1 ≤ sp2 within the pool, with only primes that say more than coprimality from sp2
on.
Ratpoints.firstStages_spec for a result (pool', sp1, sp2) of the first two stages.
The sieve entries of an array of candidates each with its sieve entry ((·.ssp)) with a
property at its position: one for each candidate, each with the property at its position.