theoremrepresentative_from_generic_coding (π : Degree ≃o Degree)
(F : Oracle→Oracle) (hF : MeasurableF)
(C : Oracle→Oracle→Oracle) (hC : Measurable (Function.uncurry C))
(G : Bool→Oracle→Oracle) (hG : ∀ b, Measurable (G b))
(hgen : ∀A b, degree (F (G b A)) = π (degree (G b A)))
(hcoded : ∀A b, degree (F (CA (G b A))) = π (degree (CA (G b A))))
(hideal : ∀A a, a ≤ degree A↔
a ≤ degree (join (CA (GfalseA)) (GfalseA)) ∧
a ≤ degree (join (CA (GtrueA)) (GtrueA))) :
∃H : Oracle→Oracle, MeasurableH∧∀A, degree (HA) = π (degree A) :=by
proof · 14
lines
letL : Bool→Oracle→Oracle:=fun b A=> join (F (CA (G b A))) (F (G b A))
have hL (b : Bool) : Measurable (L b) :=
join_measurable _ _ (hF.comp (hC.comp (measurable_id.prodMk (hG b)))) (hF.comp (hG b))
have hdegree (A : Oracle) (b : Bool) :
degree (L b A) = π (degree (join (CA (G b A)) (G b A))) :=by
dsimp only [L]
change degree (F (CA (G b A))) ⊔ degree (F (G b A)) =
π (degree (CA (G b A)) ⊔ degree (G b A))
rw [hcoded A b, hgen A b, π.map_sup]
apply borel_of_ideal_intersection (Lfalse) (Ltrue) (hL false) (hL true)
(funA=> π (degree A))
intro A a
rw [hdegree Afalse,hdegree Atrue]
exact common_lower_transport π _ _ _ (hideal A) a