πŸ›οΈ Atlasβœ’οΈFormalizations.Combinatorics.Additive.AddClosedInterval view on GitHub β†—1 theorems
/-Copyright (c) 2026 Carles MarΓ­n. All rights reserved.Released under Apache 2.0 license as described in the file LICENSE.Authors: Carles MarΓ­n-/module public import Mathlib.Order.Basicpublic import Mathlib.Tactic.Linarith /-!# An additively closed set containing `[a, 2a]` contains `[a, ∞)` ## Main results * `ConjeturaC.mem_of_Icc_subset`: if `S βŠ† β„•` is closed under addition and contains every `i` with  `a ≀ i ≀ 2a` (`a > 0`), then it contains every `i β‰₯ a`.-/ @[expose] public section namespace ConjeturaC theorem mem_of_Icc_subset {a : β„•} (ha : 0 < a) {S : Set β„•}    (hadd : βˆ€ x y, x ∈ S β†’ y ∈ S β†’ x + y ∈ S)    (hI : βˆ€ i, a ≀ i β†’ i ≀ 2 * a β†’ i ∈ S) : βˆ€ i, a ≀ i β†’ i ∈ S := by  intro i  induction i using Nat.strong_induction_on with  | _ i ih =>    intro hi    by_cases h2 : i ≀ 2 * a    Β· exact hI i hi h2    Β· have hA : a ∈ S := hI a le_rfl (by omega)      have hB : i - a ∈ S := ih (i - a) (by omega) (by omega)      have := hadd (i - a) a hB hA      rwa [Nat.sub_add_cancel (by omega)] at this end ConjeturaC