Lean / Reader
Lean reader

LazyLucas.lean

15 lines2 declarationsno sorryimports LazyLucasRuns LazyLucasEncoding

Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports LazyLucasRuns, LazyLucasEncoding, which it does not have: you can read it there, but it will not check. Build the project itself to check it.

  1. import LazyLucasRuns
  2. import LazyLucasEncoding
  3. namespace LazyLucas
  4. /-- An integer is lazy-Lucas-Niven if its maximal Lucas digit count divides it. -/
  5. def IsNiven (n : ℕ) : Prop := digits n ∣ n
  6. theorem no_four_lazy_lucas_niven (n : ℕ) (hn : 1 ≤ n) :
  7. ¬(IsNiven n ∧ IsNiven (n+1) ∧ IsNiven (n+2) ∧ IsNiven (n+3)) :=
  8. no_four_for_digit_count digits digits_eq_bounded n hn
  9. #print axioms no_four_lazy_lucas_niven
  10. end LazyLucas