LeanPool.FriezePatterns.Chapter2 #
Imported Lean Pool material for LeanPool.FriezePatterns.Chapter2.
An n-flute: a positive integer sequence a with a 0 = 1, periodic with period
n - 1, and satisfying the divisibility relation a (k + 1) ∣ a k + a (k + 2).
The underlying sequence of the flute.
Every entry of the flute is positive.
The flute starts at
1.The flute is periodic with period
n - 1.Each interior entry divides the sum of its neighbours.
Instances For
@[reducible]
The constant flute (the sequence identically equal to 1).
Inhabited is preferred over Nonempty so that we can recover the explicit witness.
Equations
- csteFlute n = { default := { a := fun (x : ℕ) => 1, pos := ⋯, hd := csteFlute._proof_1, period := csteFlute._proof_2, div := csteFlute._proof_3 } }