Documentation

LeanPool.Koethe.Mortality.Mask

Periodic masks and independent connector holes #

Free positions are enumerated as a finite subtype of occurrences, not as residue classes. In particular a connector of length m * period has m * holes distinct projective blocks.

theorem KoetheCounterexample.Mortality.lookup_add_of_dvd {k : Type u_1} [Field k] (M : PeriodicMask k) (a b : ) (ha : M.period a) :
M.lookup (a + b) = M.lookup b
theorem KoetheCounterexample.Mortality.compatible_append {k : Type u_1} [Field k] (M : PeriodicMask k) {u v : List (Triple k)} (hu : M.Compatible u) (hv : M.Compatible v) (hlen : M.period u.length) :
M.Compatible (u ++ v)
theorem KoetheCounterexample.Mortality.compatible_ofFn {k : Type u_1} [Field k] (M : PeriodicMask k) {L : } (f : Fin LTriple k) (hf : ∀ (i : Fin L) (z : Triple k), M.lookup i = some zf i = z) :
@[reducible, inline]

Actual unassigned occurrences in a finite interval.

Equations
Instances For
    @[instance_reducible]
    Equations

    The number of free positions in the initial interval of length L.

    Equations
    Instances For
      noncomputable def KoetheCounterexample.Mortality.freeIndex {k : Type u_1} [Field k] (M : PeriodicMask k) (L : ) :

      An enumeration of the free positions in the initial interval of length L.

      Equations
      Instances For
        theorem KoetheCounterexample.Mortality.lookup_finProd {k : Type u_1} [Field k] (M : PeriodicMask k) {m : } (a : Fin m) (b : Fin M.period) :

        Exact independent-hole count, including zero repetitions.

        noncomputable def KoetheCounterexample.Mortality.connectorLetter {k : Type u_1} [Field k] (M : PeriodicMask k) (L : ) (i : Fin L) :

        A fixed letter at assigned positions; a distinct variable block at each hole.

        Equations
        Instances For
          noncomputable def KoetheCounterexample.Mortality.formalConnector {k : Type u_1} [Field k] (M : PeriodicMask k) (L : ) :

          The formal word of length L reading the mask: its fixed letter at each assigned position and a distinct hole at each free position.

          Equations
          Instances For
            theorem KoetheCounterexample.Mortality.connectorLetter_of_some {k : Type u_1} [Field k] (M : PeriodicMask k) (L : ) (i : Fin L) (z : Triple k) (h : M.lookup i = some z) :

            Each enumerated hole contributes exactly one copy of its block degree.

            theorem KoetheCounterexample.Mortality.specialized_connector_nonzero {k : Type u_1} [Field k] (M : PeriodicMask k) (L : ) (x : Fin (freeCount M L) × Fin 3k) (hx : ∀ (b : Fin (freeCount M L)), (fun (j : Fin 3) => x (b, j)) 0) (z : Triple k) :
            theorem KoetheCounterexample.Mortality.exists_compatible_block {k : Type u_1} [Field k] (M : PeriodicMask k) :
            ∃ (w : List (Triple k)), w.length = M.period (∀ zw, z 0) M.Compatible w

            There is an initial compatible, nonzero word of exactly one mask period.