abbrev
definition
Pattern
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.Measurement on GitHub at line 20.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
lambda_PBM_approx -
ionization_monotone_within_period -
entries_distinct -
anomaly_dissolved -
is_recognition_loop -
recognition_loop_has_surjection -
impulse_after_octaves_mono_decay -
octavePeriod_eq_eight -
octavePeriod_is_minimal_cover -
VolcanicForcingAsJCostImpulseCert -
utm_exists -
ledgerVecParity -
parityPattern -
parity -
attempt5 -
blockSumAligned8_periodic -
Cylinder -
firstBlockSum_eq_Z_on_cylinder -
observeAvg8_periodic_eq_Z -
subBlockSum8_periodic_eq_Z -
Z_of_window -
eight_tick_neutral_implies_exact -
isNeutralWindow -
eight_tick_minimal -
C2_scope -
C3_scope -
card_pattern -
CompleteCover -
cover_exact_pow -
eight_tick_min -
instFintypePattern -
min_ticks_cover -
no_surj_small -
Pattern -
T7_nyquist_obstruction -
T7_threshold_bijection -
binaryReflectedGray -
natToGray -
GrayCodeFacts -
grayToNat_preserves_bound
formal source
17abbrev Stream := PatternLayer.Stream
18
19/-- Finite windows of length `n`. -/
20abbrev Pattern (n : Nat) := PatternLayer.Pattern n
21
22/-- Integer functional counting ones in a window. -/
23abbrev Z_of_window {n : Nat} (w : Pattern n) : Nat := PatternLayer.Z_of_window w
24
25/-- Cylinder set of streams matching a window. -/
26abbrev Cylinder {n : Nat} (w : Pattern n) : Set Stream := PatternLayer.Cylinder w
27
28/-- Periodic extension of an 8-bit window. -/
29abbrev extendPeriodic8 := PatternLayer.extendPeriodic8
30
31/-- Sum of the first `m` bits of a stream. -/
32abbrev sumFirst (m : Nat) (s : Stream) : Nat := PatternLayer.sumFirst m s
33
34/-- Sum of one 8-tick sub-block starting at index `j * 8`. -/
35abbrev subBlockSum8 (s : Stream) (j : Nat) : Nat := MeasurementLayer.subBlockSum8 s j
36
37/-- Aligned block sum over `k` copies of the 8-tick window. -/
38abbrev blockSumAligned8 (k : Nat) (s : Stream) : Nat := MeasurementLayer.blockSumAligned8 k s
39
40/-- Averaged (per-window) observation over aligned blocks. -/
41abbrev observeAvg8 (k : Nat) (s : Stream) : Nat := MeasurementLayer.observeAvg8 k s
42
43/-- On any stream lying in the cylinder of an 8-bit window, the first block sum equals `Z`. -/
44lemma firstBlockSum_eq_Z_on_cylinder (w : Pattern 8) {s : Stream}
45 (hs : s ∈ Cylinder w) :
46 subBlockSum8 s 0 = Z_of_window w := by
47 simpa [subBlockSum8, Cylinder, Z_of_window]
48 using MeasurementLayer.firstBlockSum_eq_Z_on_cylinder (w:=w) (s:=s) hs
49
50/-- For periodic extensions of an 8-bit window, each sub-block sums to `Z`. -/