Swapping ∀ and ∃ over a finite type #
If p i j gets harder as j grows and i ranges over a finite type, then a witness i for each
j gives one witness for all j (Finite.forall_exists_iff_exists_forall_of_antitone). This is
Mathlib's iInf_iSup_of_antitone in the frame Prop, stated with quantifiers. Finite games use it:
a winning answer from a finite set for each number of rounds gives one answer that wins every
finite game.
Main results #
Finite.forall_exists_iff_exists_forall_of_antitone:(∀ j, ∃ i, p i j) ↔ ∃ i, ∀ j, p i jfor a finite type ofi, a directed type ofj, andp iantitone inj.
theorem Finite.forall_exists_iff_exists_forall_of_antitone {ι : Type u_1} {ι' : Type u_2} [Finite ι] [Preorder ι'] [Nonempty ι'] [IsDirectedOrder ι'] {p : ι → ι' → Prop} (hp : ∀ (i : ι), Antitone (p i)) :
(∀ (j : ι'), ∃ (i : ι), p i j) ↔ ∃ (i : ι), ∀ (j : ι'), p i j
Over a finite type of witnesses, a witness for each j of a condition that gets harder as j
grows gives one witness for all j.