OAI/Dynamics/SmoothObstruction/Recognition.lean
56 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.SmoothObstruction.WordConcatenation.mismatchesline 11 - lemma
OAI.SmoothObstruction.WordConcatenation.mismatches_nonnegline 15 - lemma
OAI.SmoothObstruction.WordConcatenation.mismatches_sumline 18 - lemma
OAI.SmoothObstruction.WordConcatenation.mismatches_compline 23 - lemma
OAI.SmoothObstruction.WordConcatenation.mismatches_concatline 29 - lemma
OAI.SmoothObstruction.WordConcatenation.concat_distanceline 35 - def
OAI.SmoothObstruction.WordConcatenation.joinedline 49Source documentation
Arbitrarily addressed letters of a two-word splice. Only addresses less than twice the word length are used by recognition.
def joined [NeZero m] (u v : Fin m → A) (k : ℕ) : A := …
- def
OAI.SmoothObstruction.WordConcatenation.spliceline 53 - lemma
OAI.SmoothObstruction.WordConcatenation.splice_zeroline 56 - lemma
OAI.SmoothObstruction.WordConcatenation.joined_lowline 60 - lemma
OAI.SmoothObstruction.WordConcatenation.joined_highline 63 - lemma
OAI.SmoothObstruction.WordConcatenation.concat_atline 66 - lemma
OAI.SmoothObstruction.WordConcatenation.joined_concatline 81 - lemma
OAI.SmoothObstruction.WordConcatenation.splice_chunkline 97Source documentation
Every lower-length portion of a shifted concatenation is precisely a splice of two successive lower words. This identity includes the join of the two larger words and repeated constituents.
lemma splice_chunk [NeZero m] [NeZero N] (u : B → Fin m → A) (w v : Fin N → B) (t : Fin (m*N)) (b : Fin N) : (fun r => splice (concat u w) (concat u v) t (pack (b,r))) = splice (u (joined w v (t.val/m+b.val))) (u (joined w v (t.val/m+b.val+1))) ⟨t.val%m,Nat.mod_lt _ (NeZero.pos m)⟩ := by …Mentions: OAI.SmoothObstruction.WordConcatenation.splice, OAI.SmoothObstruction.WordConcatenation.concat, OAI.SmoothObstruction.WordConcatenation.pack, OAI.SmoothObstruction.WordConcatenation.joined
- lemma
OAI.SmoothObstruction.WordConcatenation.mismatches_blocksline 120 - lemma
OAI.SmoothObstruction.WordConcatenation.splice_alignedline 126 - def
OAI.SmoothObstruction.WordConcatenation.Recognizesline 140Source documentation
A single recognition predicate handles both distinct words and every nontrivial splice, so the symbol-scale induction cannot drop an offset.
def Recognizes [NeZero m] (u : B → Fin m → A) (δ : ℝ) : Prop := …
- theorem
OAI.SmoothObstruction.WordConcatenation.recognition_stepline 146 - lemma
OAI.SmoothObstruction.WordHierarchy.splice_firstline 194 - lemma
OAI.SmoothObstruction.WordHierarchy.count_complementline 201 - lemma
OAI.SmoothObstruction.WordHierarchy.stage_recognizesline 214 - lemma
OAI.SmoothObstruction.WordHierarchy.recognizes_reindex_lengthline 232 - instance
OAI.SmoothObstruction.WordHierarchy.recognitionNNeZeroline 238 - lemma
OAI.SmoothObstruction.WordHierarchy.children_recognizesline 241 - def
OAI.SmoothObstruction.WordHierarchy.deltaline 244 - lemma
OAI.SmoothObstruction.WordHierarchy.delta_zeroline 246 - lemma
OAI.SmoothObstruction.WordHierarchy.delta_succline 247 - lemma
OAI.SmoothObstruction.WordHierarchy.delta_nonnegline 249 - lemma
OAI.SmoothObstruction.WordHierarchy.epsilon_sumline 252 - lemma
OAI.SmoothObstruction.WordHierarchy.delta_lowerline 257 - instance
OAI.SmoothObstruction.WordHierarchy.recognitionLengthNeZeroline 270 - theorem
OAI.SmoothObstruction.WordHierarchy.word_recognizesline 275Source documentation
Source recognition at every symbol offset for the actual chosen words, not only for the constituent-label lists.
theorem word_recognizes (i : ℕ) : Recognizes (word i) (delta i) := by …
Mentions: OAI.SmoothObstruction.WordHierarchy.word, OAI.SmoothObstruction.WordHierarchy.delta
- theorem
OAI.SmoothObstruction.WordHierarchy.uniform_recognitionline 303Source documentation
The uniform fixed-alphabet constant is at least 3/4, hence strictly positive independently of the level and the three source labels.
theorem uniform_recognition (i : ℕ) : Recognizes (word i) (3/4) := by …
Mentions: OAI.SmoothObstruction.WordHierarchy.word
- def
OAI.SmoothObstruction.RecognitionWindow.LegalAtline 316Source documentation
A legal phase-marked bilateral sequence, with no restriction at window endpoints; adjacent words are allowed to be identical.
def LegalAt (w : B → Fin m → A) (u : ℤ → A) (p : ZMod m) : Prop := …
- theorem
OAI.SmoothObstruction.RecognitionWindow.window_spliceline 322Source documentation
Every arbitrary length-m window is a splice of the two actual adjacent legal words. This includes negative starts and windows beyond the observed half-name.
theorem window_splice (w : B → Fin m → A) (u : ℤ → A) (p : ZMod m) (hu : LegalAt w u p) (t : ℤ) : ∃ a b, ∃ o : Fin m, (o.val : ZMod m)=p+(t : ZMod m) ∧ (fun r : Fin m => u (t+r.val))=splice (w a) (w b) o := by … - lemma
OAI.SmoothObstruction.RecognitionWindow.mismatches_symmline 361 - lemma
OAI.SmoothObstruction.RecognitionWindow.phase_block_costline 368Source documentation
Recognition forces a fixed cost on every aligned block whenever the other sequence has a different phase.
lemma phase_block_cost (w : B → Fin m → A) {δ : ℝ} (hw : Recognizes w δ) (u v : ℤ → A) (p q : ZMod m) (hu : LegalAt w u p) (hv : LegalAt w v q) (hpq : p≠q) (t : ℤ) (ht : (t : ZMod m)=-p) : δ*m≤(mismatches (fun r : Fin m => u (t+r.val)) (fun r : Fin m => v (t+r.val)) : ℝ) := by … - lemma
OAI.SmoothObstruction.RecognitionWindow.mismatches_injectionline 384 - def
OAI.SmoothObstruction.RecognitionWindow.blocksEmbeddingline 395Source documentation
The D-1 full blocks after first alignment are disjoint and remain in [0,D*m), including the case of a nonzero advance.
def blocksEmbedding (D a : ℕ) (ha : a < m) : Fin (D-1) × Fin m ↪ Fin (D*m) where …
- lemma
OAI.SmoothObstruction.RecognitionWindow.complete_blocks_leline 422Source documentation
The whole-window mismatch count dominates the sum of all complete aligned block counts. No stochastic independence is involved.
lemma complete_blocks_le (D a : ℕ) (ha : a < m) (u v : ℤ → A) (t : ℤ) : (∑ j : Fin (D-1),mismatches (fun r : Fin m => u (t+(a+j.val*m+r.val : ℕ))) (fun r : Fin m => v (t+(a+j.val*m+r.val : ℕ))))≤ mismatches (fun r : Fin (D*m) => u (t+r.val)) (fun r : Fin (D*m) => v (t+r.val)) := by … - theorem
OAI.SmoothObstruction.RecognitionWindow.phase_recoveryline 438Source documentation
Small mismatch on one half-name recovers the ORIGINAL phase. It does not choose or shift entry indices after the geometric switch.
theorem phase_recovery (w : B → Fin m → A) {δ : ℝ} (_hδ : 0<δ) (hw : Recognizes w δ) (u v : ℤ → A) (p q : ZMod m) (hu : LegalAt w u p) (hv : LegalAt w v q) (D : ℕ) (hD : 2≤D) (a : ℕ) (ha : a < m) (haP : (a : ZMod m)=-p) (hclose : (mismatches (fun r : Fin (D*m) => u r.val) (fun r : Fin (D*m) => v r.val) : ℝ)<δ*(D*m)/100) : p=q := by … - lemma
OAI.SmoothObstruction.RecognitionWindow.distinct_word_costline 472 - theorem
OAI.SmoothObstruction.RecognitionWindow.entry_recoveryline 480Source documentation
Once the original phases have been recovered, the original entry labels cannot disagree with the switched labels at many positions. No new alignment or reindexing of entries is permitted.
theorem entry_recovery (w : B → Fin m → A) {δ : ℝ} (hδ : 0<δ) (hw : Recognizes w δ) (u v : ℤ → A) (D a : ℕ) (ha : a < m) (t : ℤ) (U V : Fin (D-1) → B) (hU : ∀ j r,u (t+(a+j.val*m+r.val:ℕ))=w (U j) r) (hV : ∀ j r,v (t+(a+j.val*m+r.val:ℕ))=w (V j) r) (hclose : (mismatches (fun r : Fin (D*m) => u (t+r.val)) (fun r : Fin (D*m) => v (t+r.val)):ℝ)<δ*(D*m)/100) : (mismatches U V:ℝ)<D/100 := by … - theorem
OAI.SmoothObstruction.RecognitionWindow.paired_graph_boundline 521Source documentation
Pure entry pairing: two small label-error sets remove at most their sum from a graph window. In particular the source constants give the literal .96 passing bound in the unchanged index order.
theorem paired_graph_bound {D : ℕ} (hD : 2≤D) (R : B → B → Prop) [DecidableRel R] (U V Z W : Fin (D-1) → B) (hgraph : ∀ j,R (Z j) (W j)) (hU : (mismatches U Z:ℝ)<D/100) (hV : (mismatches V W:ℝ)<D/100) : (24/25:ℝ)≤(∑ j,if R (U j) (V j) then (1:ℝ) else 0)/(D-1) := by … - lemma
OAI.SmoothObstruction.WordHierarchy.actual_legalline 550 - lemma
OAI.SmoothObstruction.WordHierarchy.actual_iterate_symbolline 556 - lemma
OAI.SmoothObstruction.WordHierarchy.advance_phaseline 560 - lemma
OAI.SmoothObstruction.WordHierarchy.measurable_advanceline 563 - def
OAI.SmoothObstruction.WordHierarchy.firstListline 568Source documentation
Original ordered labels after the first true boundary, without changing its phase or introducing a new pairing.
noncomputable def firstList (i D : ℕ) (x : Extension) : Fin (D-1) → A i := …
Mentions: OAI.SmoothObstruction.WordHierarchy.Extension, OAI.SmoothObstruction.WordHierarchy.A
- lemma
OAI.SmoothObstruction.WordHierarchy.measurable_firstListline 571 - lemma
OAI.SmoothObstruction.WordHierarchy.firstList_wordline 574 - theorem
OAI.SmoothObstruction.WordHierarchy.actual_recoveryline 593Source documentation
On the actual extension, source symbol agreement recovers both the true phase and all but D/100 of the original ordered labels.
theorem actual_recovery (i D : ℕ) (hD : 2≤D) (x z : Extension) (hclose : (mismatches (fun r : Fin (D*length 40000 i) => x.val.1 r.val) (fun r : Fin (D*length 40000 i) => z.val.1 r.val):ℝ)< (3/4:ℝ)*(D*length 40000 i)/100) : phase i x=phase i z ∧ (mismatches (firstList i D x) (firstList i D z):ℝ)<D/100 := by …Mentions: OAI.SmoothObstruction.WordHierarchy.Extension, OAI.SmoothObstruction.WordHierarchy.phase, OAI.SmoothObstruction.WordHierarchy.firstList
- lemma
OAI.SmoothObstruction.WordHierarchy.measurable_form_pairline 612 - lemma
OAI.SmoothObstruction.WordHierarchy.measurable_graphWindows_atline 616 - lemma
OAI.SmoothObstruction.WordHierarchy.measurable_graphWindowsline 626 - theorem
OAI.SmoothObstruction.WordHierarchy.stationary_graph_probabilityline 635Source documentation
Actual graph-event probability under the stationary law, obtained by pushing its first-boundary advance, never by assuming uniform parents.
theorem stationary_graph_probability (μ : Measure Extension) [IsProbabilityMeasure μ] (hT : MeasurePreserving T μ μ) (i k : ℕ) (hk : k≤K (S i)/8) : 1-((2*2^k-2:ℕ):ℝ)/H (S i)≤ μ.real {x | graphWindows i k (advance i x)} := by …Mentions: OAI.SmoothObstruction.WordHierarchy.Extension, OAI.SmoothObstruction.WordHierarchy.T, OAI.SmoothObstruction.WordHierarchy.S, OAI.SmoothObstruction.WordHierarchy.graphWindows, OAI.SmoothObstruction.WordHierarchy.advance