lean_workbook_plus_21714
ProvedStarting from , assume contains . Then should also contain the preimage of . should also contain the preimage of preimage of . Repeating this, should at least contain every with for some non-negative integer . And stop.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_21714 (f : ℕ → ℕ) (g : ℕ → ℕ) (hg : g = fun x => if x = 1 then 1 else x - 1) (A : Set ℕ) (hA : A = {x | ∃ n : ℕ, g^[n] x = 1}) : A = {x | ∃ n : ℕ, g^[n] x = 1} := by sorrySource