(* Title: DP_QBS.thy
Author: Michikazu Hirata, Institute of Science Tokyo *)
theory DP_QBS imports"Differential_Privacy.Differential_Privacy_Divergence" "Differential_Privacy.Differential_Privacy_Standard" "S_Finite_Measure_Monad.Monad_QuasiBorel" begin
section‹ Definitions› text‹ Details of differential privacy using quasi-Borel spaces are found at~\cite{Sato_Katsumata_2023}›
subsection‹ Divergence for Differential Privacy using QBS› definition DP_qbs_divergence :: "'a qbs_measure ==> 'a qbs_measure ==> real ==> ereal" ("DP'_divergenceQ") where
DP_qbs_divergence_qbs_l: "DP_divergenceQ p q e ≡ DP_divergence (qbs_l p) (qbs_l q) e"
abbreviation DP_qbs_inequality ("DP'_inequalityQ") where "DP_qbs_inequality p q ε δ ≡ DP_divergenceQ p q ε ≤ ereal δ"
(* antimonotonicity for \<epsilon> *) lemma DP_qbs_divergence_antimono: "a ≤ b ==> DP_divergenceQ p q b ≤ DP_divergenceQ p q a" by(auto simp: DP_qbs_divergence_def intro!: SUP_mono' mult_right_mono)
(* reflexivity *) lemma DP_qbs_divergence_refl[simp]: "DP_divergenceQ p p 0 = 0" unfolding DP_qbs_divergence_qbs_l by(rule DP_divergence_reflexivity)
lemma DP_qbs_divergence_refl'[simp]: "0 ≤ e ==> DP_divergenceQ p p e = 0" by(intro antisym DP_qbs_divergence_nonneg) (auto simp: DP_qbs_divergence_def SUP_le_iff mult_le_cancel_right1)
(* transitivity *) lemma DP_qbs_divergence_trans': assumes"DP_inequalityQ p q ε δ" and"DP_inequalityQ q l ε' 0" shows"DP_inequalityQ p l (ε + ε') δ" unfolding DP_qbs_divergence_le_ereal_iff diff_le_eq proof safe fix A assume [measurable]:"A ∈ sets (qbs_l p)" show"measure (qbs_l p) A ≤ δ + exp (ε + ε') * measure (qbs_l l) A" proof - have"measure (qbs_l p) A ≤ δ + exp ε * measure (qbs_l q) A" using assms(1) by(auto simp: DP_qbs_divergence_le_ereal_iff diff_le_eq) alsohave"... ≤ δ + exp ε * (exp ε' * measure (qbs_l l) A)" using DP_qbs_divergence_le_ereal_dest assms(2) by fastforce finallyshow ?thesis by (simp add: exp_add) qed qed
proposition DP_qbs_bind_adaptive: assumes"ε ≥ 0"and"ε' ≥ 0" and [qbs]:"M ∈ X →Q monadP_qbs Y" and"differential_privacyQ M adj ε δ" and [qbs]:"N ∈ X ==>Q Y ==>Q monadP_qbs Z" and"∧y. y ∈ qbs_space Y ==> differential_privacyQ (λx. N x y) adj ε' δ'" and"adj ⊆ qbs_space X × qbs_space X" shows"differential_privacyQ (λx. M x 🍋 N x) adj (ε + ε') (δ + δ')" using assms by(fastforce simp add: DP_qbs_def intro!: DP_qbs_divergence_compose[of _ Y _ _ Z])
proposition DP_qbs_bind_pair: assumes"ε ≥ 0""ε' ≥ 0" and [qbs]:"M ∈ X →Q monadP_qbs Y" and"differential_privacyQ M adj ε δ" and [qbs]:"N ∈ X →Q monadP_qbs Z" and"differential_privacyQ N adj ε' δ'" and"adj ⊆ qbs_space X × qbs_space X" shows"differential_privacyQ (λx. M x 🍋 (λy. N x 🍋 (λz. return_qbs (Y ⨂Q Z) (y,z)))) adj (ε + ε') (δ + δ')" proof - note [qbs] = return_qbs_morphismP bind_qbs_morphismP show"?thesis" using assms by(auto intro!: DP_qbs_bind_adaptive[where X=X and Y=Y and Z="Y ⨂Q Z"]
DP_qbs_postprocessing[where X=X and Y=Z and Z="Y ⨂Q Z"]) qed
end
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.24 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.