Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.NativeChildBounds

The sizes of the native child networks #

The native child (NativeChild.nativeChild) of a rows-first parent with the native packing of its edges keeps the two invariants of the recursion of [OAI26k] (§D.4.6, p. 63) that its running time needs:

Both need 64 ^ a ≤ M, under which the native packing is the packing of Lemma D.3 (NativeChild.nativeParentPacking_eq), and a node of valuation i < a.

Main results #

References #

@[reducible, inline]
noncomputable abbrev Cslib.Circuits.Frontier.NativeChild.parentGroup {T : Type} {r : ℕ} {D : DescribedNetwork (VertexDesc T)} (hD : D.IsRowsFirstBipartite r) (a : ℕ) {i : ℕ} (hia : i < a) :

The group of a vertex of the parent in coordinate i < a of its packing.

theorem Cslib.Circuits.Frontier.NativeChild.nativeChild_nativeParentPacking_eq {T : Type} {r a i : ℕ} {D : DescribedNetwork (VertexDesc T)} (hD : D.IsRowsFirstBipartite r) (hK : 64 ^ a ≤ D.numEdges) (hia : i < a) (fl : List ℕ) (pt : ℕ) (t : ℤ) (ζ β : List ℕ) (g : Fin 64) :
nativeChild fl a i pt t ζ r D (nativeParentPacking r a D) β ↑g = { numEdges := (ChildNumbering.members fun (e : Fin D.numEdges) => parentGroup hD a hia (DescribedNetwork.srcFin hD e) = g).length + (ChildNumbering.members fun (e : Fin D.numEdges) => parentGroup hD a hia (DescribedNetwork.tgtFin hD e) = g).length, vertices := List.ofFn fun (c : Fin ((ChildNumbering.members fun (v : Fin D.vertices.length) => parentGroup hD a hia v = g).length + (parentPacking hD a).numPackets)) => (List.map (fun (e : ChildNumbering.ChildEdge (DescribedNetwork.srcFin hD) (DescribedNetwork.tgtFin hD) (parentGroup hD a hia) g) => ↑((ChildNumbering.childEdgeEquiv (DescribedNetwork.srcFin hD) (DescribedNetwork.tgtFin hD) (parentGroup hD a hia) g) e)) (numberedPorts hD (parentGroup hD a hia) (parentPacking hD a).packet g ((ChildNumbering.childVertexEquiv (parentGroup hD a hia) g).symm c)), numberedDesc hD (parentGroup hD a hia) (parentPacking hD a).packet (fun (e : Fin D.numEdges) => ↑((parentPacking hD a).slot e)) g fl a i pt t ζ β ((ChildNumbering.childVertexEquiv (parentGroup hD a hia) g).symm c)) }

The native child is the numbered child of the packing of the parent, when 64 ^ a ≤ M and i < a.

The members of a predicate are as many as its elements.

theorem Cslib.Circuits.Frontier.NativeChild.numEdges_nativeChild_eq {T : Type} {r a i : ℕ} {D : DescribedNetwork (VertexDesc T)} (hD : D.IsRowsFirstBipartite r) (hK : 64 ^ a ≤ D.numEdges) (hia : i < a) (fl : List ℕ) (pt : ℕ) (t : ℤ) (ζ β : List ℕ) (g : Fin 64) :
(nativeChild fl a i pt t ζ r D (nativeParentPacking r a D) β ↑g).numEdges = {e : Fin D.numEdges | (parentPacking hD a).rowLabel (DescribedNetwork.srcFin hD e) ⟨i, hia⟩ = g}.card + {e : Fin D.numEdges | (parentPacking hD a).colLabel (DescribedNetwork.tgtFin hD e) ⟨i, hia⟩ = g}.card

The edges of the native child are the ports of its group: the row ports of group g, then its column ports.

A row of a rows-first network is the row of at most as many edges as it has ports.

A column of a rows-first network is the column of at most as many edges as it has ports.

theorem Cslib.Circuits.Frontier.NativeChild.sixteen_mul_numEdges_nativeChild_le {T : Type} {r a i : ℕ} {D : DescribedNetwork (VertexDesc T)} (hD : D.IsRowsFirstBipartite r) (hK : 64 ^ a ≤ D.numEdges) (hia : i < a) {Δ : ℕ} (hdeg : ∀ v ∈ D.vertices, v.1.length ≤ Δ) (hM : 2 * Δ * (64 ^ (2 * a)) ^ 2 ≤ D.numEdges) (fl : List ℕ) (pt : ℕ) (t : ℤ) (ζ β : List ℕ) (g : Fin 64) :
16 * (nativeChild fl a i pt t ζ r D (nativeParentPacking r a D) β ↑g).numEdges ≤ D.numEdges

At most M / 16 edges in a native child, under the size hypothesis 2 Δ D² ≤ M of (D.6), D = 64 ^ (2 a), for a rows-first parent with M ≥ 64 ^ a edges and maximum degree Δ, at a node of valuation i < a.

theorem Cslib.Circuits.Frontier.NativeChild.numPackets_nativeParentPacking_mul_le {T : Type} {r a : ℕ} {D : DescribedNetwork (VertexDesc T)} (hD : D.IsRowsFirstBipartite r) (hK : 64 ^ a ≤ D.numEdges) {Δ : ℕ} (hdeg : ∀ v ∈ D.vertices, v.1.length ≤ Δ) (hM : 2 * Δ * (64 ^ (2 * a)) ^ 2 ≤ D.numEdges) (hL : 2 ^ a * 64 ^ (2 * a) ≤ D.numEdges) :
(nativeParentPacking r a D).2.1 * 2 ^ a ≤ 3 * D.numEdges

At most 3 M / L packets (Lemma D.3 (1)) in the native packing of a rows-first parent with M ≥ 64 ^ a edges and maximum degree Δ, under (D.6): 2 Δ D² ≤ M and L D ≤ M, D = 64 ^ (2 a), L = 2 ^ a.

theorem Cslib.Circuits.Frontier.NativeChild.card_packet_le {a : ℕ} {E : Type u_1} {R : Type u_2} {C : Type u_3} [Fintype E] {rowOf : E → R} {colOf : E → C} {r : ℕ} (Q : PacketPacking.Packing rowOf colOf a r) (q : Fin Q.numPackets) :
{e : E | Q.packet e = q}.card ≤ 2 ^ a

At most 2 ^ a edges lie in a packet of a packing.

theorem Cslib.Circuits.Frontier.NativeChild.length_le_of_mem_vertices_nativeChild {T : Type} {r a i : ℕ} {D : DescribedNetwork (VertexDesc T)} (hD : D.IsRowsFirstBipartite r) (hK : 64 ^ a ≤ D.numEdges) (hia : i < a) {Δ : ℕ} (hdeg : ∀ v ∈ D.vertices, v.1.length ≤ Δ) (hL : 2 * 2 ^ a ≤ Δ) (fl : List ℕ) (pt : ℕ) (t : ℤ) (ζ β : List ℕ) (g : Fin 64) {v : List ℕ × VertexDesc T} (hv : v ∈ (nativeChild fl a i pt t ζ r D (nativeParentPacking r a D) β ↑g).vertices) :
v.1.length ≤ Δ

The degree bound passes to the native child: if the parent has maximum degree at most Δ and 2 · 2 ^ a ≤ Δ, every vertex of the child has at most Δ ports. A parent vertex keeps its ports, and a packet vertex has one port per end in group g of an edge of its packet, of which there are at most 2 ^ a.