import Mathlib.Tactic namespace Erdos824Doubling /-- The selected multiplicities in a balanced subcollection of the arc template. The coordinates at height h represent the same closing arc. -/ theorem multiplicities {h : ℕ} (a b c : ℕ → ℕ) (hbase : c 0 = a 0) (hpairs : ∀ i intro _; simp [hbase] | succ i ih => intro hstep have hi : i < h := hstep obtain ⟨hai,hci⟩ := ih hi.le rw [ha i hi, hc i hi, hpairs i hi, hai, hci, pow_succ] constructor <;> ring theorem empty_or_full {h : ℕ} (a b c : ℕ → ℕ) (hcap : a 0 ≤ 1) (hbase : c 0 = a 0) (hpairs : ∀ i (hpairs i h).trans hai⟩ · right intro i hi obtain ⟨hai,hci⟩ := hm i hi simp [ho] at hai hci exact ⟨hai,hci,fun h => (hpairs i h).trans hai⟩ #print axioms empty_or_full end Erdos824Doubling