BanditRLlib
Lean gate passed before this site build; local proof declarations are shown as compiled.

Lean module · OFUL

BanditRLProof.OFULScheduledPowerOfTwoForcedIndexCount

Generated source map for this Lean module.

Module map

Declarations
7
Placeholders
0

Imports

No project-local imports.

Imported by

BanditRLProof, BanditRLProof.OFULScheduledPowerOfTwoForcedHistoryAlgorithm

Declarations

Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.

def BanditRLProof.OFUL.isPowerOfTwoForcedIndex Compiled

A horizon-independent forcing predicate for successor indices one below powers of two. The `Nat.log2` equality makes the predicate decidable without a classical search over exponents.

def isPowerOfTwoForcedIndex (n : Nat) : Prop
theorem BanditRLProof.OFUL.isPowerOfTwoForcedIndex_iff Compiled

The computable predicate has the intended existential power-of-two semantics.

theorem isPowerOfTwoForcedIndex_iff {n : Nat} : isPowerOfTwoForcedIndex n <-> exists k, n + 1 = 2 ^ k
def BanditRLProof.OFUL.powerOfTwoForcedIndexSet Compiled

Power-of-two forced successor indices strictly below `horizon`.

def powerOfTwoForcedIndexSet (horizon : Nat) : Finset Nat
theorem BanditRLProof.OFUL.mem_powerOfTwoForcedIndexSet_iff Compiled

Membership combines the prefix bound with the intended power-of-two equation.

theorem mem_powerOfTwoForcedIndexSet_iff {horizon n : Nat} : n ∈ powerOfTwoForcedIndexSet horizon <-> n < horizon ∧ exists k, n + 1 = 2 ^ k
theorem BanditRLProof.OFUL.powerOfTwoForcedIndexSet_zero Compiled

No declaration docstring is present; use the chapter context and exact statement below.

theorem powerOfTwoForcedIndexSet_zero : powerOfTwoForcedIndexSet 0 = ∅
theorem BanditRLProof.OFUL.zero_mem_powerOfTwoForcedIndexSet_iff Compiled

Index zero is forced exactly in nonempty horizon prefixes.

theorem zero_mem_powerOfTwoForcedIndexSet_iff {horizon : Nat} : 0 ∈ powerOfTwoForcedIndexSet horizon <-> 0 < horizon
theorem BanditRLProof.OFUL.card_powerOfTwoForcedIndexSet_le_log2_add_one Compiled

There are at most `Nat.log2 horizon + 1` power-of-two forced indices below a horizon. Each member embeds into the image of the admissible exponent range.

theorem card_powerOfTwoForcedIndexSet_le_log2_add_one (horizon : Nat) : (powerOfTwoForcedIndexSet horizon).card <= Nat.log2 horizon + 1