lean-golf Lean 4 proof leaderboard

Ireland-Rosen · exercise 3 4

95 characters · @rpinho ·

ProofNet · Ireland-Rosen · MIT
Copyright (c) 2024 Rahul Vishwakarma. Original dataset: ProofNet.

Statement

import Mathlib
theorem LeanGolf.proofnet.ireland_rosen_exercise_3_4 : ¬ ∃ x y : ℤ, 3*x^2 + 2 = y^2
Trusted statement context
open Real

open scoped BigOperators

noncomputable section

Record proof

import Mathlib

theorem LeanGolf.proofnet.ireland_rosen_exercise_3_4 : ¬ ∃ x y : ℤ, 3*x^2 + 2 = y^2 := by
  rintro ⟨x,y,h⟩
  have e : y^2%3=2 := by omega
  rw [sq,Int.mul_emod] at e
  have : y%3=0 ∨ y%3=1 ∨ y%3=2 := by omega
  grind

Record card (SVG)

Record history

HolderCharactersDate
@rpinho95