File size: 350 Bytes
eec79f6 | 1 2 3 4 5 6 7 8 9 | import Mathlib
/-- The expression is congruent to the stated residue. -/
theorem congr_poly2 (x y : ℤ) (hx : x ≡ 7 [ZMOD 13]) (hy : y ≡ 4 [ZMOD 13]) :
4 * (x * y) + 3 * y ^ 2 + 7 * x ≡ 1 [ZMOD 13] := by
have h1 := (((hx.mul hy).mul_left 4).add ((hy.pow 2).mul_left 3)).add ((hx).mul_left 7)
refine h1.trans ?_
norm_num [Int.ModEq]
|