A007770: Happy numbers: numbers whose trajectory under iteration of sum of squares of digits map (see A003132) includes 1.
Statement
From Ulrich Krug (leuchtfeuer37(AT)gmx.de), Apr 23 2009: 1) Every power 10^k is a member of the sequence. 2) If n is member the numbers obtained by placing zeros anywhere in n are members. 3) If n is member each permutation of digits of n gives another member. 4) If the repeated process of summing squared digits give a number which is already a member of sequence the starting number belongs to the sequence. 5) If n is a member the repunit consisting of n 1's is a member. 6) If n is a member delete any digit d, new number consisting of remaining digits of n and d^2 1's placed everywhere to n is a member. 7) It is conjectured that the sequence includes an infinite number of primes (see A035497). 8) For any starting number the repeated process of summing squared digits ends with 1 or gives an "8-loop" which ends with (37,58,89,145,42,20,4,16,37)
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/oeis-a007770.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Text: OEIS Foundation, CC BY-SA 4.0. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/oeis-a007770.lean
import Mathlib /-! # A007770: Happy numbers: numbers whose trajectory under iteration of sum of squares of digits map (see A003132) includes 1. Source: https://oeis.org/A007770 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_oeis_a007770 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a007770