Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Cuts.Law

Laws: exchange identities between roles #

A law (Cut.Law) is an identity that the moves of the cutting argument of [Ant26] (Appendix H.2; module Nc.G.Defs) use to cut units. It has roles, slots and channels; a slot and a channel each have two ends, at two different roles, exactly as the units of the play have two holders (Play.Holds). Every slot carries one bit, of which the two roles at its ends each have a copy. The identity says that the condition "the two copies of the bit of every slot agree" is a sum, over an index and over a bit string on every channel, of a product of tables of the roles; the table of a role reads the bits of its slots and the strings of its channels.

Taking the product of B copies of the identity gives the same identity for B bits on every slot (Cut.Law.pow), which is how a move uses a law on whole units.

A law has finitely many entries, the values of its tables (Cut.Law.entries, Cut.Law.finite_entries). In the proof of Theorem G.2 the ring A is generated by the entries of finitely many laws over the field; a law whose tables lie in a subsemiring A is a law over A (Cut.Law.restrict). A law over A is a law over every A-algebra, with the images of its tables (Cut.Law.map).

Main definitions #

Main results #

References #

A law: an identity that writes the agreement of the two copies of the bit of every slot as a sum, over indices and over strings on the channels, of products of tables of the roles.

@[reducible, inline]

The slots of a role.

@[reducible, inline]

The channels of a role.

The strings of the law have length at most m.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.Law.pow {F : Type u_1} [CommSemiring F] (L : Law F) (B : ℕ) (X : L.Role → Fin B → L.Slot → Bool) :
(if ∀ (e : L.Slot) (k : Fin B), X (L.slotEnd e false) k e = X (L.slotEnd e true) k e then 1 else 0) = ∑ i : Fin B → L.Index, ∑ g : (ν : L.Channel) → (k : Fin B) → BitString (L.length (i k) ν), ∏ p : L.Role, ∏ k : Fin B, L.table p (i k) (fun (e : { e : L.Slot // Play.Holds L.slotEnd p e }) => X p k ↑e) fun (ν : { ν : L.Channel // Play.Holds L.channelEnd p ν }) => g (↑ν) k

The power of a law: the identity for B bits on every slot. The index and the strings on the channels are chosen for every bit.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.Law.connected_pow {F : Type u_1} [CommSemiring F] (L : Law F) {B : ℕ} (f : L.Role → Fin B → L.Index) (h : ∀ (ν : L.Channel), f (L.channelEnd ν false) = f (L.channelEnd ν true)) (p q : L.Role) :
f p = f q

Indices of B copies of a law that agree along all channels are equal.

The values of the tables of a law.

A law has finitely many entries.

def Cslib.Circuits.Arithmetic.Separation.Cut.Law.restrict {F : Type u_1} [CommSemiring F] (L : Law F) {S : Type u_2} [SetLike S F] [SubsemiringClass S F] (A : S) (hA : ∀ (p : L.Role) (i : L.Index) (X : { e : L.Slot // Play.Holds L.slotEnd p e } → Bool) (g : (ν : { ν : L.Channel // Play.Holds L.channelEnd p ν }) → BitString (L.length i ↑ν)), L.table p i X g ∈ A) :
Law ↥A

A law whose tables take values in a subsemiring A of F, as a law over A.

A law over every algebra (Appendix G, p. 43, after Theorem G.2): the image of a law under a ring homomorphism f, with the tables f ∘ L.table.