lean_workbook_plus_34791
ProvedFind the solutions of the following equations in residue class mod 6: \n1) 5 ⊗ x ⊕ 2 = 4 \n2) 3 ⊗ x ⊕ 4 = 4 \n3) 2 ⊗ x ⊕ 3 = 2 \n\nwhere the symbols are: ⊕ for addition and ⊗ for multiplication mod 6.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_34791 (x : ℕ) (h₁ : (5 * x + 2) % 6 = 4) (h₂ : (3 * x + 4) % 6 = 4) (h₃ : (2 * x + 3) % 6 = 2) : x ≡ 1 [ZMOD 6] ∨ x ≡ 3 [ZMOD 6] ∨ x ≡ 5 [ZMOD 6] := by sorry
Source