LeanMachineLearning

Bandits.ArrayModel.action_eq_and_pullCount_eq_congrπŸ”—

Lemma

No docstring.

Types
  • 𝓐 : Type u_1m𝓐 : MeasurableSpace 𝓐A measurable space is a space equipped with a Οƒ-algebra.Nonempty 𝓐StandardBorelSpace 𝓐A standard Borel space is a measurable space arising as the Borel sets of some Polish topology.DecidableEq 𝓐
  • 𝓑 : Type u_2m𝓑 : MeasurableSpace 𝓑
Given
Assuming
  • hΟ‰1 : βˆ€ (i : β„•), Ο‰.1 i = Ο‰'.1 i
  • hΟ‰2_ne : βˆ€ (i : β„•) (b : 𝓐), b β‰  a β†’ Ο‰.2 i b = Ο‰'.2 i b
  • hΟ‰2_eq : βˆ€ (i : β„•), i + 1 ≀ m β†’ Ο‰.2 i a = Ο‰'.2 i a
Then
action alg n Ο‰ = a ∧ Learning.pullCount (action alg) a n Ο‰ = m ↔
  action alg n Ο‰' = a ∧ Learning.pullCount (action alg) a n Ο‰' = m
Code
lemma action_eq_and_pullCount_eq_congr (alg : Algorithm Unit 𝓐 𝓑) (a : 𝓐) (m n : β„•)
    {Ο‰ Ο‰' : probSpace 𝓐 𝓑}
    (hΟ‰1 : βˆ€ i, Ο‰.1 i = Ο‰'.1 i) (hΟ‰2_ne : βˆ€ i b, b β‰  a β†’ Ο‰.2 i b = Ο‰'.2 i b)
    (hΟ‰2_eq : βˆ€ i, i + 1 ≀ m β†’ Ο‰.2 i a = Ο‰'.2 i a) :
    (action alg n Ο‰ = a ∧ pullCount (action alg) a n Ο‰ = m) ↔
      (action alg n Ο‰' = a ∧ pullCount (action alg) a n Ο‰' = m)
Proof
⟨action_eq_and_pullCount_eq_congr_aux alg a m n hΟ‰1 hΟ‰2_ne hΟ‰2_eq,
    action_eq_and_pullCount_eq_congr_aux alg a m n (by grind) (by grind) (by grind)⟩

Meaning last changed in v4.35.0-rc2-1-g61e506b (2026-09-22), the 5th recorded change.

Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file Β· open it in the Lean web editor.

Dependency graph

Audit surface: 11 project declarations, 65 external constants

βœ“ Proved: no sorry anywhere in its closure

This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.