birgermoell's picture
Add files using upload-large-folder tool
d3791e3 verified
Raw History Blame Contribute Delete
290 Bytes
import Mathlib
/-- The polynomial is congruent to the stated residue. -/
theorem congr_poly (x : ℤ) (h : x ≡ 1 [ZMOD 7]) :
6 * x ^ 2 + 7 * x + 4 ≡ 3 [ZMOD 7] := by
have h1 := (((h.pow 2).mul_left 6).add ((h).mul_left 7)).add_right 4
refine h1.trans ?_
norm_num [Int.ModEq]