Download lean/OAI/Computability/DegreeRigidity/Representation/GenericRepresentation.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
theoremselected_generic_ideal (D : ℕ→ListBool→Prop) (hd : ∀ n, DenseOpen (D n)) :
∃G : Bool→Oracle→Oracle, (∀ b, Measurable (G b)) ∧
(∀A b, GenericForD (G b A) ∧GenericCoding.InfiniteOdd (G b A) ∧∀Y, GenericForD (GenericCoding.code Y (G b A))) ∧∀A a, a ≤ degree A↔ a ≤ degree (join A (GfalseA)) ∧ a ≤ degree (join A (GtrueA)) :=by
proof · 5
lines
obtain ⟨Z,hZ,hgeneric,hfamily⟩ := borel_pair_selection D hd CommonIdeal.family
CommonIdeal.family_dense CommonIdeal.family_measurable
refine ⟨fun b A=> column b (ZA),fun b => (column_measurable b).comp hZ,hgeneric,?_⟩
intro A a
exact CommonIdeal.ideal_of_family A (ZA) (hfamily A) a
obtain ⟨D,hD,f,hf,hπ⟩ := h
obtain ⟨P,p,hp⟩ :=ContinuousCode.continuous_uniform_program {A | GenericForDA} f hf
exact ⟨D,hD,P,p,funA hA => ⟨f A,hp A hA,hπ A hA⟩⟩
obtain ⟨D,hD,P,p,hp⟩ := h
obtain ⟨G,hG,hgeneric,hideal⟩ := selected_generic_ideal D hD
exact representative_from_generic_program π p PG hG
(funA b => (hgeneric A b).2.1)
(funA b => hp (G b A) (hgeneric A b).1)
(funA b => hp (GenericCoding.code A (G b A)) ((hgeneric A b).2.2A)) hideal