OAI/Probability/FKMaps/WordLaw.lean
61 declarations, 0 contain sorry, 0 declared as axioms
- instance
OAI.FKCRT.Inventory.(instance at line 11)line 11 - instance
OAI.FKCRT.Inventory.(instance at line 12)line 12 - instance
OAI.FKCRT.Inventory.(instance at line 13)line 13 - instance
OAI.FKCRT.Inventory.(instance at line 14)line 14 - structure
OAI.FKCRT.Inventory.Parametersline 16 - lemma
OAI.FKCRT.Inventory.Parameters.posline 21 - def
OAI.FKCRT.Inventory.Parameters.ofQline 23 - def
OAI.FKCRT.Inventory.massline 32 - lemma
OAI.FKCRT.Inventory.mass_posline 37 - lemma
OAI.FKCRT.Inventory.sum_lettersline 42 - lemma
OAI.FKCRT.Inventory.mass_sumline 55 - def
OAI.FKCRT.Inventory.lawline 60 - lemma
OAI.FKCRT.Inventory.law_singletonline 64 - lemma
OAI.FKCRT.Inventory.law_real_singletonline 68 - lemma
OAI.FKCRT.Inventory.integral_lawline 72 - lemma
OAI.FKCRT.Inventory.integral_incrementline 78 - def
OAI.FKCRT.Inventory.streamLawline 84 - instance
OAI.FKCRT.Inventory.(instance at line 86)line 86 - def
OAI.FKCRT.Inventory.signSumline 89 - lemma
OAI.FKCRT.Inventory.signSum_succline 92 - lemma
OAI.FKCRT.Inventory.increment_boundsline 95 - theorem
OAI.FKCRT.Inventory.signs_hit_oneline 100Source documentation
Recurrence of the actual raw-word signs. This uses the proved integer martingale recurrence theorem, not a recurrence hypothesis.
theorem signs_hit_one (P : Parameters) : ∀ᵐ x ∂streamLaw P ℕ,∃ n,signSum x n=1 := by …Mentions: OAI.FKCRT.Inventory.Parameters, OAI.FKCRT.Inventory.streamLaw, OAI.FKCRT.Inventory.signSum
- lemma
OAI.FKCRT.Inventory.pop_fixedline 156 - lemma
OAI.FKCRT.Inventory.pop_flexibleline 166 - inductive
OAI.FKCRT.Inventory.TypedLetterline 169 - def
OAI.FKCRT.Inventory.TypedLetter.fixedline 174 - def
OAI.FKCRT.Inventory.stackTypedStepline 178 - def
OAI.FKCRT.Inventory.identifyOneline 182 - def
OAI.FKCRT.Inventory.identifyline 189 - def
OAI.FKCRT.Inventory.stackTypedRunline 196 - lemma
OAI.FKCRT.Inventory.identifyOne_stepline 200 - lemma
OAI.FKCRT.Inventory.identifyOne_noneline 219 - lemma
OAI.FKCRT.Inventory.identify_soundline 229 - lemma
OAI.FKCRT.Inventory.identify_completeline 249 - lemma
OAI.FKCRT.Inventory.emptyReducing_iff_identifyline 266 - lemma
OAI.FKCRT.Inventory.identify_fixedline 272 - def
OAI.FKCRT.Inventory.flexibleClosingline 295Source documentation
A fixed typed closing is flexible exactly when its type is the freshest burger still present. This is a property of the identified word, not of marks.
def flexibleClosing (s : List Bool) : TypedLetter → Prop | .burger _ => False | .order b => s.head?=some b
Mentions: OAI.FKCRT.Inventory.TypedLetter
- instance
OAI.FKCRT.Inventory.(instance at line 298)line 298 - def
OAI.FKCRT.Inventory.originsline 301 - lemma
OAI.FKCRT.Inventory.identifyOne_typedStepline 304 - lemma
OAI.FKCRT.Inventory.identifyOne_uniqueline 339 - def
OAI.FKCRT.Inventory.markingsline 343 - lemma
OAI.FKCRT.Inventory.mem_markingsline 349 - def
OAI.FKCRT.Inventory.wordMassline 397 - def
OAI.FKCRT.Inventory.flexibleCountline 399 - lemma
OAI.FKCRT.Inventory.origins_massline 405 - lemma
OAI.FKCRT.Inventory.markings_massline 418 - lemma
OAI.FKCRT.Inventory.stack_pop_fixed_countline 455 - lemma
OAI.FKCRT.Inventory.typedRun_appendline 467 - lemma
OAI.FKCRT.Inventory.typedRun_balanceline 475 - lemma
OAI.FKCRT.Inventory.typedRun_prefixline 494 - lemma
OAI.FKCRT.Inventory.typedRun_prefix_countline 502 - lemma
OAI.FKCRT.Inventory.typedRun_exists_iffline 511Source documentation
Successful typed words are exactly the shuffles of two nonnegative paths; final emptiness will make both paths Dyck words.
lemma typedRun_exists_iff (w : List TypedLetter) (s : List Bool) : (∃ t,stackTypedRun w s=some t) ↔ ∀ v,v<+:w → ∀ c : Bool,v.count (.order c)≤ s.count c+v.count (.burger c) := by …Mentions: OAI.FKCRT.Inventory.TypedLetter, OAI.FKCRT.Inventory.stackTypedRun
- def
OAI.FKCRT.Inventory.colorStepline 542 - def
OAI.FKCRT.Inventory.colorWordline 546 - lemma
OAI.FKCRT.Inventory.colorWord_countsline 548 - def
OAI.FKCRT.Inventory.identifiedDyckline 560Source documentation
The precise source identification: each type separately is a genuine Mathlib Dyck word, with no assumption about flexible marks.
def identifiedDyck {w : List TypedLetter} (h : stackTypedRun w []=some []) (c : Bool) : DyckWord where …Mentions: OAI.FKCRT.Inventory.TypedLetter, OAI.FKCRT.Inventory.stackTypedRun
- lemma
OAI.FKCRT.Inventory.typedRun_empty_iffline 572 - lemma
OAI.FKCRT.Inventory.fixed_word_massline 593 - lemma
OAI.FKCRT.Inventory.typedLetter_lengthline 604 - theorem
OAI.FKCRT.Inventory.empty_markings_massline 614Source documentation
Exact finite flexible-marking weight from words.tex (markedweight). The remaining map activity correspondence must identify
flexibleCount.theorem empty_markings_mass (P : Parameters) {w : List TypedLetter} (h : stackTypedRun w []=some []) : (∑ v∈markings w [],wordMass P v) = ((1-P.p)/16)^(w.length/2)*(1+2*P.p/(1-P.p))^(flexibleCount w []) := by …Mentions: OAI.FKCRT.Inventory.Parameters, OAI.FKCRT.Inventory.TypedLetter, OAI.FKCRT.Inventory.stackTypedRun, OAI.FKCRT.Inventory.markings, OAI.FKCRT.Inventory.wordMass, OAI.FKCRT.Inventory.flexibleCount