Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
markusdemedeiros committed Nov 5, 2024
1 parent 80c8297 commit ae096f7
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 136 deletions.
1 change: 1 addition & 0 deletions SampCert.lean
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import SampCert.DifferentialPrivacy.Queries.Histogram.Basic
import SampCert.DifferentialPrivacy.ZeroConcentrated.System
import SampCert.DifferentialPrivacy.Pure.System
import SampCert.DifferentialPrivacy.Queries.HistogramMean.Properties
import SampCert.DifferentialPrivacy.Queries.UnboundedMax.Basic
import SampCert.DifferentialPrivacy.Approximate.DP
import SampCert.Samplers.Gaussian.Properties
import Init.Data.UInt.Lemmas
Expand Down
7 changes: 5 additions & 2 deletions SampCert/DifferentialPrivacy/Queries/UnboundedMax/Basic.lean
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
/-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jean-Baptiste Tristan
Authors: Markus de Medeiros
-/

-- import SampCert.DifferentialPrivacy.Queries.UnboundedMax.Code
-- import SampCert.DifferentialPrivacy.Queries.UnboundedMax.Properties

import SampCert.DifferentialPrivacy.Queries.UnboundedMax.Properties
import SampCert.DifferentialPrivacy.Queries.UnboundedMax.Privacy

-- import SampCert.DifferentialPrivacy.Queries.UnboundedMax.Pure
-- import SampCert.DifferentialPrivacy.Queries.UnboundedMax.ZeroConcentrated
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ lemma DS0 (H : Neighbour L1 L2) : ((exactDiffSum 0 L1) : ℝ) - (exactDiffSum 0
sorry



lemma sv8_privMax_pmf_DP (ε : NNReal) (Hε : ε = ε₁ / ε₂) : PureDPSystem.prop (@sv9_privMax_pmf PureDPSystem ε₁ ε₂) ε := by
lemma sv8_privMax_pmf_DP (ε : NNReal) (Hε : ε = ε₁ / ε₂) :
PureDPSystem.prop (@sv9_privMax_pmf PureDPSystem laplace_pureDPSystem ε₁ ε₂) ε := by
-- Unfold DP definitions
simp [DPSystem.prop]
apply singleton_to_event
Expand Down Expand Up @@ -264,7 +264,7 @@ lemma sv8_privMax_pmf_DP (ε : NNReal) (Hε : ε = ε₁ / ε₂) : PureDPSystem
simp [cov_τ]
rw [mul_assoc]
apply ENNReal.mul_left_mono
simp [privNoiseGuess, privNoiseZero, DPSystem.noise, privNoisedQueryPure]
simp [privNoiseGuess, privNoiseZero, DPNoise.noise, privNoisedQueryPure]
apply le_trans
· apply laplace_inequality_sub
rw [mul_comm]
Expand Down Expand Up @@ -470,8 +470,7 @@ lemma sv8_privMax_pmf_DP (ε : NNReal) (Hε : ε = ε₁ / ε₂) : PureDPSystem
have _ := @exactDiffSum_nonpos (point + 1) [n2]
linarith

simp [privNoiseThresh, privNoiseGuess,
privNoiseZero, DPSystem.noise, privNoisedQueryPure]
simp [privNoiseThresh, privNoiseGuess, privNoiseZero, DPNoise.noise, privNoisedQueryPure]

-- Apply the Laplace inequalities
apply le_trans
Expand Down
Loading

0 comments on commit ae096f7

Please sign in to comment.