lean-golf Lean 4 proof leaderboard

IMO1962 P1

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2020 Kevin Lacker. All rights reserved. Authors: Kevin Lacker

Statement

import Mathlib.Data.Nat.Digits.Lemmas
theorem _root_.LeanGolf.compfiles.imo1962_p1 : IsLeast {n | ProblemPredicate n} solution
Trusted statement context
noncomputable section

namespace Imo1962P1

open Nat

def ProblemPredicate (n : ℕ) : Prop :=
  (digits 10 n).headI = 6 ∧ ofDigits 10 ((digits 10 n).tail.concat 6) = 4 * n

abbrev solution : ℕ := 153846