Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.TruncatedEntry

Theorem D.1 at truncation order ℓ for entry procedures #

Theorem D.1 of [OAI26k] (p. 53) contracts networks whose entries lie in B_{P,ℓ} = (ℤ / 2 ^ P)[V] / (V ^ ℓ) and are computed by procedures. This file reduces it to the case ℓ = 1 with entries in A_P = (ℤ / 2 ^ P)[U] / (f): from a contraction algorithm for entry procedures (Cslib.Circuits.Frontier.EntryContractionAlgorithm) for the specialized entries, Cslib.Circuits.Frontier.TruncatedContractionAlgorithm.ofEntry builds a truncated contraction algorithm for the original entries. It instantiates the assembly Cslib.Circuits.Frontier.TruncatedContractionAlgorithm.ofCore and discharges its hypotheses.

Admissible networks (Cslib.Circuits.Frontier.TruncEntryAdmissible). The hypotheses of Theorem D.1 as in Cslib.Circuits.Frontier.EntryAdmissible, plus at most C s vertices. The precision is bounded by D s (⌊log₂ s⌋ + 1) and the truncation order by D (s + 1) ^ d, for fixed D and d, in the interface itself.

Narrowing against Theorem D.1. The theorem asks only that the number of vertices be bounded by a fixed polynomial in s. The bound k ≤ C s is what the assembly needs: the reduction of truncation order ℓ to A_P interpolates at (ℓ - 1) k + 1 points, which must fit in the residues of the modulus FastContraction.modulus m. These eventually outnumber every fixed polynomial in m (FastContraction.pow_le_card_modulus), so polynomial truncation passes the guard beyond a constant size. Below that size direct summation costs a constant factor. The applications satisfy the linear vertex bound: the network of Lemma D.2 (p. 56) has 2 J = 2 ⌈n ^ (1/4)⌉ vertices at size s = n ν, and that of the fixed-density bound (§D.2, p. 54) has O_k(n + m) vertices at size s = n + m.

The hypotheses of the assembly.

Main definitions #

Main results #

References #

Specialization keeps a network rows-first: it keeps the ports.

Specialization does not shorten the encoded network: each descriptor t becomes (t, P, ℓ, fl, ζ).

Admissible networks for Theorem D.1 at truncation order ℓ, with an entry procedure, at size s with constant C: the network G with r row vertices is admissible for ce (EntryAdmissible: rows-first bipartite, between s and C s edges, degree at most ⌈s ^ (9/10)⌉, entries within C (s + L + 1) ^ C 2 ^ (C ⌈s ^ (9/10)⌉) time and C (s + L + 1) ^ C space) and has at most C s vertices.

The vertex bound narrows Theorem D.1 of [OAI26k] (p. 53), which asks only for a polynomial bound in s. The networks of Lemma D.2 (p. 56) and of the fixed-density bound (§D.2, p. 54) satisfy it.

Specialization keeps networks admissible. For every entry certificate ce and constant C there is C' such that, for every network G admissible for ce at size s with constant C, every network specialized from it, at any precision P, truncation order ℓ, modulus fl and point ζ, is admissible for the specialized entries (specEntryCertificate entry ce) at size s with constant C'.

theorem Cslib.Circuits.Frontier.EntryContraction.exists_entry_le_of_entryAdmissible {T : Type} {encT : T ↪ List Bool} {entry : T → List Bool → List ℕ} (ce : GenericRAM.NativeCertificate (fun (q : T × List Bool) => entry q.1 q.2) (Turing.MultiTapeTM.encPair encT Turing.MultiTapeTM.encBits) (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat)) (C : ℕ) :
∃ (K : ℕ), ∀ (s r : ℕ) (G : DescribedNetwork T), EntryAdmissible ce C s (r, G) → ∀ v ∈ G.vertices, ∀ (bs : List Bool), bs.length = v.1.length → ce.time (v.2, bs) ≤ K * (((DescribedNetwork.encDescribed encT) G).length + 1) ^ K * 2 ^ (K * s) ∧ ce.space (v.2, bs) ≤ K * (((DescribedNetwork.encDescribed encT) G).length + 1) ^ K

Entries within poly(L) 2 ^ O(s) on admissible networks. For every constant C there is K such that on every network admissible for ce at size s with constant C, of encoded length L, every entry takes time at most K (L + 1) ^ K 2 ^ (K s) and space at most K (L + 1) ^ K: the number of edges is in unary in the encoding, so s ≤ L, and ⌈s ^ (9/10)⌉ ≤ s.

Theorem D.1 at truncation order ℓ for entry procedures, from the case ℓ = 1. Let ce be a native certificate of an entry procedure, and A a contraction algorithm for the specialized entries (specEntry entry, with the certificate specEntryCertificate entry ce) on the networks admissible for them. Then the assembly TruncatedContractionAlgorithm.ofCore around A is a truncated contraction algorithm for the networks admissible for ce with at most C s vertices (TruncEntryAdmissible ce): it computes the contraction in B_{P,ℓ} in time poly(n) 2 ^ O(s / √⌊log₂ s⌋) and polynomial space, for 1 ≤ P ≤ D s (⌊log₂ s⌋ + 1) and 1 ≤ ℓ ≤ D (s + 1) ^ d, for fixed D, d.