Download lean/OAI/Computability/DegreeRigidity/Representation/CountableGroundGeneric.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
classical
obtain ⟨x,hx⟩ := hne
obtain ⟨m,_⟩ := label_surjective M hx
let_ : Nonempty (ConditionsM) := ⟨m⟩
obtain ⟨e,he⟩ := exists_surjective_nat (ConditionsM)
letD : ℕ→Set (Conditions c) :=fun n =>ifDense {q : Conditions c | label c q ∈ label M (e n)} then
{q | label c q ∈ label M (e n)} elseSet.univ
havehD : ∀ n, Dense (D n) :=by
intro n
dsimp only [D]
split
· assumption
· exact fun q => ⟨q,le_rfl,Set.mem_univ _⟩
obtain ⟨G,hp,hG⟩ := exists_generic D hD p
refine ⟨G,hp,?_⟩
intro E hEM hE
obtain ⟨m,hm⟩ := label_surjective M hEM
obtain ⟨n,rfl⟩ := he m
havehd : Dense {q : Conditions c | label c q ∈ label M (e n)} :=by
rw [hm]; exact hE
obtain ⟨q,hq,hqn⟩ := hG n
refine ⟨q,hq,?_⟩
simpa only [D,ite_eq_left hd,Set.mem_ofPred_eq,hm] using hqn