kernel-Int.modEq_neg
- Kind
- kernel-term
- Status
- checked
Supports: The proposition declared as `Int.ModEq.neg` in the pinned Mathlib v4.30 source.
cargo test -p axeyum-lean-kernel --lib int_prelude:: Evidence notes
`declare_modeq_neg` (`crates/axeyum-lean-kernel/src/int_prelude/modeq.rs`), unconditional in `n`, no `dvd` route needed: decompose `a=n*qa+ra`, `b=n*qb+ra` (`h` aligns the residues), so `-a=n*(-qa)+(-ra)` and `-b=n*(-qb)+(-ra)` (`ineg_add`, `Int.mul_neg`), and `Int.modEq_add_mul_left`'s `ModEq n (n*c+x) x` (unconditional) gives `ModEq n (-a) (-ra)` and `ModEq n (-b) (-ra)` directly; `trans`+`symm` close the gap.