def
definition
sampleW
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.Streams.Blocks on GitHub at line 159.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
formal source
156open PatternLayer MeasurementLayer
157
158/-- Example 8‑bit window: ones at even indices (Z=4). -/
159def sampleW : PatternLayer.Pattern 8 := fun i => decide (i.1 % 2 = 0)
160
161-- Example checks (can be evaluated in an interactive session)
162-- #eval PatternLayer.Z_of_window sampleW
163-- #eval MeasurementLayer.observeAvg8 3 (PatternLayer.extendPeriodic8 sampleW)
164
165end Examples
166
167end IndisputableMonolith