A quotient operation is exact when multiplication by every nonzero right factor can be undone by division by that factor.
Right multiplication followed by division by a nonzero factor cancels.
Instances
Exact division implies right cancellation by a nonzero factor.
Exact division and commutative-ring laws rule out nonzero products vanishing.
A nonzero element witnesses that a lightweight ring is nontrivial.
The additive inverse of one is nonzero in a nontrivial lightweight ring.
Total exact quotient wrapper. The zero denominator is a documented junk input and returns zero.
Instances For
Exact division by zero takes the stable junk branch.
A nonzero exact quotient is the underlying quotient operation.
The wrapper cancels a nonzero exact right factor under ExactDivLaws.
Integer Euclidean division is exact on nonzero right multiples.
A nontrivial ring without zero divisors. Proof-only: a certificate checker
that needs no quotient operation states its soundness over this class rather
than over ExactDivLaws, so that a consumer re-checking a witness never has
to supply a division.
The ring is nontrivial.
A vanishing product has a vanishing factor.
Instances
Every Lean.Grind.Field is a domain.
An exact quotient on a nontrivial ring rules out zero divisors. Stated as a
theorem rather than an instance because ExactDivLaws alone does not imply
nontriviality: the trivial ring satisfies it vacuously.
Every Lean.Grind.Field supplies the exact-division law.