lean-golf Lean 4 proof leaderboard

Ireland-Rosen · exercise 3 5

101 characters · @rpinho ·

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

Statement

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

open scoped BigOperators

noncomputable section

Record proof

import Mathlib

theorem LeanGolf.proofnet.ireland_rosen_exercise_3_5 : ¬ ∃ x y : ℤ, 7*x^3 + 2 = y^3 := by
  rintro ⟨x,y,h⟩
  have H := congrArg (Int.cast : ℤ → ZMod 7) h
  push_cast at H
  exact (by decide : ∀ a b : ZMod 7, 7*a^3+2 ≠ b^3) _ _ H

Record card (SVG)

Record history

HolderCharactersDate
@rpinho101