OAI/Probability/TraceReconstruction/Model.lean
82 declarations, 0 contain sorry, 0 declared as axioms
Model
Independent deletion, complete trace observations, randomized estimators, ENNReal fixed-budget complexity, concatenation, and literal input words.
- abbrev
OAI.TraceReconstruction.Wordline 19Also declared: ComparatorChallenges/TraceReconstruction.lean:10 (same declaration text).
- abbrev
OAI.TraceReconstruction.Maskline 20Also declared: ComparatorChallenges/TraceReconstruction.lean:11 (same declaration text).
- abbrev
OAI.TraceReconstruction.Traceline 21Also declared: ComparatorChallenges/TraceReconstruction.lean:12 (same declaration text).
- def
OAI.TraceReconstruction.traceOfMaskline 24Source documentation
trueretains the bit. The observer gets only the resulting list.Also declared: ComparatorChallenges/TraceReconstruction.lean:15 (same declaration text).
def traceOfMask {n : ℕ} (x : Word n) (a : Mask n) : Trace := …Mentions: OAI.TraceReconstruction.Word, OAI.TraceReconstruction.Mask, OAI.TraceReconstruction.Trace
- def
OAI.TraceReconstruction.maskWeightline 28Source documentation
The deletion-mask probability, with deletion probability
q.Also declared: ComparatorChallenges/TraceReconstruction.lean:19 (same declaration text).
def maskWeight {n : ℕ} (q : ℝ) (a : Mask n) : ℝ := …Mentions: OAI.TraceReconstruction.Mask
- def
OAI.TraceReconstruction.traceMassline 32Source documentation
Law of a single complete trace.
Also declared: ComparatorChallenges/TraceReconstruction.lean:23 (same declaration text).
def traceMass {n : ℕ} (q : ℝ) (x : Word n) (w : Trace) : ℝ := …Mentions: OAI.TraceReconstruction.Word, OAI.TraceReconstruction.Trace
- def
OAI.TraceReconstruction.traceSpaceline 36Source documentation
All possible complete outputs from length-n inputs, with lengths included.
Also declared: ComparatorChallenges/TraceReconstruction.lean:27 (same declaration text).
def traceSpace (n : ℕ) : Finset Trace := …
Mentions: OAI.TraceReconstruction.Trace
- def
OAI.TraceReconstruction.traceTVline 41Source documentation
1/2 sum of absolute differences, on the full finite output space.
Also declared: ComparatorChallenges/TraceReconstruction.lean:32 (same declaration text).
def traceTV {n : ℕ} (q : ℝ) (x y : Word n) : ℝ := …Mentions: OAI.TraceReconstruction.Word
- def
OAI.TraceReconstruction.IsEstimatorline 46Source documentation
The estimator may depend arbitrarily on n, q and every complete sample. Its value is its conditional probability of reporting the given input.
Also declared: ComparatorChallenges/TraceReconstruction.lean:37 (same declaration text).
def IsEstimator {n m : ℕ} (A : (Fin m → Trace) → Word n → ℝ) : Prop := …Mentions: OAI.TraceReconstruction.Trace, OAI.TraceReconstruction.Word
- def
OAI.TraceReconstruction.reconstructionSuccessline 51Source documentation
Independent masks generate independent complete traces; no retained positions, boundaries or other latent variables are revealed to A.
Also declared: ComparatorChallenges/TraceReconstruction.lean:42 (same declaration text).
def reconstructionSuccess {n m : ℕ} (q : ℝ) (A : (Fin m → Trace) → Word n → ℝ) (x : Word n) : ℝ := …Mentions: OAI.TraceReconstruction.Trace, OAI.TraceReconstruction.Word
- def
OAI.TraceReconstruction.SufficientBudgetline 56Also declared: ComparatorChallenges/TraceReconstruction.lean:47 (same declaration text).
- def
OAI.TraceReconstruction.sampleComplexityline 61Source documentation
Natural fixed sample budget; infimum of the empty set is infinity.
Also declared: ComparatorChallenges/TraceReconstruction.lean:52 (same declaration text).
noncomputable def sampleComplexity (n : ℕ) (q s : ℝ) : ℝ≥0∞ := …
- def
OAI.TraceReconstruction.minTraceTVline 65Source documentation
The real infimum is a minimum for n>0 (a nonempty finite set).
Distinct definitions of this name: ComparatorChallenges/TraceReconstruction.lean:56 (same statement text; different proof or body). Qualify references as OAI.TraceReconstruction.minTraceTV@path.
noncomputable def minTraceTV (n : ℕ) (q : ℝ) : ℝ := …
- theorem
OAI.TraceReconstruction.traceOfMask_length_leline 79 - theorem
OAI.TraceReconstruction.mem_traceSpace_of_length_leline 83 - theorem
OAI.TraceReconstruction.length_le_of_mem_traceSpaceline 89 - theorem
OAI.TraceReconstruction.mem_traceSpaceline 95 - theorem
OAI.TraceReconstruction.traceOfMask_memline 99 - theorem
OAI.TraceReconstruction.maskWeight_nonnegline 103 - theorem
OAI.TraceReconstruction.sum_maskWeightline 109 - theorem
OAI.TraceReconstruction.traceMass_nonnegline 117 - theorem
OAI.TraceReconstruction.traceMass_eq_zero_of_not_memline 125 - theorem
OAI.TraceReconstruction.sum_traceMassline 134 - theorem
OAI.TraceReconstruction.traceTV_nonnegline 140 - theorem
OAI.TraceReconstruction.traceTV_selfline 144 - theorem
OAI.TraceReconstruction.traceTV_commline 147 - theorem
OAI.TraceReconstruction.traceTV_le_oneline 150 - theorem
OAI.TraceReconstruction.FiniteLaw.extline 169 - def
OAI.TraceReconstruction.FiniteLaw.pureline 174 - def
OAI.TraceReconstruction.FiniteLaw.mapline 179 - theorem
OAI.TraceReconstruction.FiniteLaw.map_massline 182 - theorem
OAI.TraceReconstruction.FiniteLaw.expectation_mapline 191 - theorem
OAI.TraceReconstruction.FiniteLaw.tv_map_leline 200 - abbrev
OAI.TraceReconstruction.BoundedTraceline 205 - def
OAI.TraceReconstruction.maskLawline 207 - def
OAI.TraceReconstruction.completeTraceLawline 210 - theorem
OAI.TraceReconstruction.completeTraceLaw_tvline 216 - theorem
OAI.TraceReconstruction.completeTraceLaw_maskline 222 - theorem
OAI.TraceReconstruction.trace_expectationline 235 - def
OAI.TraceReconstruction.appendWordline 247Source documentation
Concatenation of exact binary inputs, not an encoded surrogate.
def appendWord {n m : ℕ} (x : Word n) (y : Word m) : Word (n + m) := Fin.append x yMentions: OAI.TraceReconstruction.Word
- theorem
OAI.TraceReconstruction.trace_filterMapline 249 - theorem
OAI.TraceReconstruction.traceOfMask_appendline 265 - theorem
OAI.TraceReconstruction.maskWeight_appendline 274 - theorem
OAI.TraceReconstruction.concatenated_trace_expectationline 280 - abbrev
OAI.TraceReconstruction.PrimitiveMarkline 299Source documentation
The four complete traces possible from the ordinary primitive
01.abbrev PrimitiveMark := Fin 4
- def
OAI.TraceReconstruction.primitiveOutputline 301 - def
OAI.TraceReconstruction.ordinaryPrimitiveMassline 302 - def
OAI.TraceReconstruction.defectPrimitiveMassline 304 - def
OAI.TraceReconstruction.primitiveErasureline 305 - def
OAI.TraceReconstruction.primitiveMarkMassline 307 - theorem
OAI.TraceReconstruction.primitive_retain_posline 311 - theorem
OAI.TraceReconstruction.primitiveMarkMass_nonnegline 316 - theorem
OAI.TraceReconstruction.primitiveMarkMass_sumline 323 - def
OAI.TraceReconstruction.primitiveMarkLawline 332 - theorem
OAI.TraceReconstruction.primitiveMark_simulationline 338Source documentation
Emitting the conditional mark, or silently erasing the block, gives exactly the ordinary primitive-output probabilities. Silent erasure and an emitted empty mark are distinct latent events.
theorem primitiveMark_simulation {q : ℝ} (hq : q ∈ Set.Ioo 0 1) (b : Bool) (z : PrimitiveMark) : (if z = 0 then primitiveErasure q else 0) + (1 - primitiveErasure q) * primitiveMarkMass q b z = if b then defectPrimitiveMass q z else ordinaryPrimitiveMass q z := by …Mentions: OAI.TraceReconstruction.PrimitiveMark, OAI.TraceReconstruction.primitiveErasure, OAI.TraceReconstruction.primitiveMarkMass, OAI.TraceReconstruction.defectPrimitiveMass, OAI.TraceReconstruction.ordinaryPrimitiveMass
- def
OAI.TraceReconstruction.primitiveScoreline 347 - theorem
OAI.TraceReconstruction.primitive_score_identityline 349 - theorem
OAI.TraceReconstruction.primitive_score_centeredline 358 - theorem
OAI.TraceReconstruction.primitive_score_boundline 365 - theorem
OAI.TraceReconstruction.primitive_score_variance_exactline 372 - theorem
OAI.TraceReconstruction.primitive_score_variance_leline 383 - def
OAI.TraceReconstruction.ordinaryRunline 399 - theorem
OAI.TraceReconstruction.ordinaryRun_lengthline 403 - theorem
OAI.TraceReconstruction.ordinaryRun_addline 408 - def
OAI.TraceReconstruction.initialPeriodline 414Source documentation
A period of m primitives with its unique
1defect at zero-based slot d.def initialPeriod (m d : ℕ) : List Bool := …
- theorem
OAI.TraceReconstruction.initialPeriod_lengthline 417 - theorem
OAI.TraceReconstruction.initialPeriod_tail_neline 423Source documentation
Distinct defect slots differ before either period ends, independently of future text.
theorem initialPeriod_tail_ne {m d e : ℕ} (hde : d < e) (he : e < m) (u v : List Bool) : initialPeriod m d ++ u ≠ initialPeriod m e ++ v := by …Mentions: OAI.TraceReconstruction.initialPeriod
- theorem
OAI.TraceReconstruction.initialPeriod_injectiveline 437 - def
OAI.TraceReconstruction.periodStringline 446 - theorem
OAI.TraceReconstruction.periodString_consline 449 - theorem
OAI.TraceReconstruction.periodString_lengthline 454 - theorem
OAI.TraceReconstruction.periodString_injectiveline 462 - def
OAI.TraceReconstruction.atomStringline 482Source documentation
Uniformly sized binary atoms concatenated without boundary marks.
def atomString (P : ℕ) (w : Bool → List Bool) (θ : Fin P → Bool) : List Bool := …
- theorem
OAI.TraceReconstruction.atomString_consline 485 - theorem
OAI.TraceReconstruction.atomString_lengthline 489 - theorem
OAI.TraceReconstruction.atomString_injectiveline 495 - def
OAI.TraceReconstruction.templateTypeline 515Source documentation
Zero-based notation for the source complementary template;
trueis minus. The motif itself is fixed independently of the hypothesis.def templateType (P a L : ℕ) (sign : Fin L → Bool) (τ : Bool) (i : Fin P) : Bool := …
- theorem
OAI.TraceReconstruction.templateType_atline 518 - theorem
OAI.TraceReconstruction.templateType_injectiveline 523 - def
OAI.TraceReconstruction.complementaryWordsline 531 - theorem
OAI.TraceReconstruction.complementaryWords_lengthline 534 - theorem
OAI.TraceReconstruction.complementaryWords_injectiveline 538