Definitions for Routing entanglement in the quantum internet
DefinitionQAlgorithms_Papers_Independent_Intakethird100_P45The objects the formalized statements of Routing entanglement in the quantum internet (arXiv:1708.07142) are stated in. Each was checked against the paper by a blind read-back and a moderator.
iidMass: PDF p.4: joint mass of independent homogeneous success flags. Each index is one attempt. For0 ≤ p ≤ 1this is a probability mass function.bernoulliFlagEvent: PDF p.4: event probability computed from independent physical attempts.retainedLinkProbability: PDF p.4: at most one ebit is retained, iff some parallel attempt succeeds.chainProbability: PDF p.4: unconditional success of a fixed chain, requiring allkexternal links and allk-1prescribed BSMs. Pairings precede outcomes.latticeDistance: PDF pp.4–5: Manhattan adjacency for physical grid edges. This is not the local protocol's Euclidean distance used in choosing neighbors.GridNetwork: PDF pp.4–5: distinct sites of a finite square-grid network. Physical edges are all nearest-neighbor pairs; successful subgraphs can delete edges.Edge: PDF p.4: an edge label, canonically ordered to avoid double counting.edgeKey: PDF p.4: one undirected physical-edge label, in either orientation.physicalEdges: PDF pp.4–5: the network's physical edges, each with at most one usable pair.endpointDegree: PDF p.4: the physical degree of a terminal.PortTrailEncoding: PDF pp.4–5: finite candidate trail encoding.r.1.valcounts its BSMs, andr.1.val+1counts its external edges. An edge-simple trail has at mostN*Nedges, so the bound loses none. Validity is imposed separately.routeLength: PDF p.4: the number of external edges in a candidate trail.routeEdge: PDF p.4: the undirected physical edge traversed at a trail step.routeEdges: PDF pp.4–5: physical memories consumed by the trail, as edge labels.ValidRoute: PDF pp.4–5: trail in a successful external graph. Distinct edges impose one use per memory, while permitting repeated repeater vertices on different ports. Neither terminal may be an internal repeater of its own flow.candidateRoutes: PDF p.5: admissible trails computed from the successful external graph.FeasibleFamily: PDF p.5: a simultaneous one-slot BSM schedule for the designated flow. Shared repeater vertices are allowed; shared physical memories are not. The schedule is selected from external flags before BSM outcomes.InternalFlags: PDF p.4: BSM flags indexed by each selected trail's internal positions. Unselected coordinates are ignored. In a feasible family selected coordinates are distinct physical BSMs because they consume distinct incident memories.deliveredCount: PDF p.4: the actual integer number of delivered ebits in one slot. Feasibility requires the selected external links to have succeeded already.conditionalYield: PDF p.5: conditional expected yield, after external flags and before BSM flags. Each selected trail contributesq^(length-1); the sum uses linearity of expectation, rather than multiplying path-success probabilities.feasibleFamilies: PDF p.5: finite set of all feasible schedules, including the empty one.shortestRoute: PDF p.5: select a shortest surviving route, with a minimizing tie choice fixed independently of future BSM outcomes. A shortest trail is a simple path.greedySteps: PDF p.5: shortest-path greedy, deleting physical edges after every choice. An initial physical-edge count of fuel suffices because every route consumes at least one remaining edge. No schedule depends on future BSM flags.greedyFamily: PDF p.5: the complete prescribed greedy schedule in a successful graph.conditionalOptimum: PDF p.5: the actual finite optimum over one-slot BSM schedules, computed from the successful graph. This is not a free function constrained by the desired bound. Randomizing schedules cannot improve a finite maximum.externalMass: PDF pp.4–5: probability of exactly a given external outcomeH. Callers sum over subsets, so subtraction counts failures without truncation. Zero exponents express empty products, including atp=0,1.greedyRate: PDF p.5: greedy expected ebits per slot, averaging the actual protocol path-sum yield over independent external-success subsets.optimalGlobalRate: PDF p.5: globally optimal one-slot pairwise-swap expected yield. Only external flags are observed before selecting the optimal schedule.
import Mathlib
/-!
# Routing entanglement in the quantum internet: finite one-slot results
Pant et al., arXiv:1708.07142v2, PDF pp.4–5. Only heralded loss is
represented: successful external links are perfect EPR pairs, and successful
BSMs join pairs. External attempts precede simultaneous internal attempts.
Memories last one slot and are used in at most one BSM; terminals retain their
halves. No purification, inter-slot storage, or general quantum processing is
included. Rates are expected delivered ebits per slot, not channel capacities.
A port-disjoint BSM schedule decomposes into terminal trails, other trails,
and cycles. Only trails joining the designated pair contribute. Conversely,
an edge-disjoint family below prescribes those BSMs, leaving other memories
idle. Trails may revisit a repeater on different ports, but may not reuse a
physical edge or pass internally through either terminal. Thus optimization
allows two BSMs per degree-four repeater and is not vertex-disjoint routing.
The finite maximum is computed before any future BSM flags are revealed.
Local-rule lattice claims and empirical claims are deferred in HARD.md.
-/
namespace QAlgorithms.Papers.Independent.Intakethird100.P45
open scoped BigOperators
noncomputable section
/-- PDF p.4: joint mass of independent homogeneous success flags. Each index
is one attempt. For `0 ≤ p ≤ 1` this is a probability mass function. -/
def iidMass {I : Type*} [Fintype I] (p : ℝ) (flags : I → Bool) : ℝ :=
∏ i, if flags i then p else 1 - p
/-- PDF p.4: event probability computed from independent physical attempts. -/
def bernoulliFlagEvent {I : Type*} [Fintype I] (p : ℝ) (event : (I → Bool) → Prop) : ℝ := by
classical
exact ∑ flags : I → Bool, if event flags then iidMass p flags else 0
/-- PDF p.4: at most one ebit is retained, iff some parallel attempt succeeds. -/
def retainedLinkProbability (S : ℕ) (p0 : ℝ) : ℝ :=
bernoulliFlagEvent (I := Fin S) p0 (fun flags => ∃ i, flags i = true)
/-- PDF p.4: unconditional success of a fixed chain, requiring all `k`
external links and all `k-1` prescribed BSMs. Pairings precede outcomes. -/
def chainProbability (k : ℕ) (p q : ℝ) : ℝ := by
classical
exact ∑ external : Fin k → Bool, ∑ internal : Fin (k - 1) → Bool,
if (∀ i, external i = true) ∧ (∀ j, internal j = true) then
iidMass p external * iidMass q internal else 0
/-- PDF pp.4–5: Manhattan adjacency for physical grid edges. This is not
the local protocol's Euclidean distance used in choosing neighbors. -/
def latticeDistance (a b : ℤ × ℤ) : ℕ :=
(a.1 - b.1).natAbs + (a.2 - b.2).natAbs
/-- PDF pp.4–5: distinct sites of a finite square-grid network. Physical
edges are all nearest-neighbor pairs; successful subgraphs can delete edges. -/
structure GridNetwork (N : ℕ) where
position : Fin N → ℤ × ℤ
injective_position : Function.Injective position
/-- PDF p.4: an edge label, canonically ordered to avoid double counting. -/
abbrev Edge (N : ℕ) := Fin N × Fin N
/-- PDF p.4: one undirected physical-edge label, in either orientation. -/
def edgeKey {N : ℕ} (a b : Fin N) : Edge N :=
(min a b, max a b)
/-- PDF pp.4–5: the network's physical edges, each with at most one usable pair. -/
def physicalEdges {N : ℕ} (G : GridNetwork N) : Finset (Edge N) := by
classical
exact Finset.univ.filter (fun e => e.1 < e.2 ∧
latticeDistance (G.position e.1) (G.position e.2) = 1)
/-- PDF p.4: the physical degree of a terminal. -/
def endpointDegree {N : ℕ} (G : GridNetwork N) (a : Fin N) : ℕ := by
classical
exact ((physicalEdges G).filter (fun e => e.1 = a ∨ e.2 = a)).card
/-- PDF pp.4–5: finite candidate trail encoding. `r.1.val` counts its BSMs,
and `r.1.val+1` counts its external edges. An edge-simple trail has at most
`N*N` edges, so the bound loses none. Validity is imposed separately. -/
abbrev PortTrailEncoding (N : ℕ) := Σ k : Fin (N * N), Fin (k.val + 2) → Fin N
/-- PDF p.4: the number of external edges in a candidate trail. -/
def routeLength {N : ℕ} (r : PortTrailEncoding N) : ℕ := r.1.val + 1
/-- PDF p.4: the undirected physical edge traversed at a trail step. -/
def routeEdge {N : ℕ} (r : PortTrailEncoding N) (i : Fin (r.1.val + 1)) : Edge N :=
edgeKey (r.2 ⟨i.val, by omega⟩) (r.2 ⟨i.val + 1, by omega⟩)
/-- PDF pp.4–5: physical memories consumed by the trail, as edge labels. -/
def routeEdges {N : ℕ} (r : PortTrailEncoding N) : Finset (Edge N) := by
classical
exact Finset.univ.image (routeEdge r)
/-- PDF pp.4–5: trail in a successful external graph. Distinct edges impose
one use per memory, while permitting repeated repeater vertices on different
ports. Neither terminal may be an internal repeater of its own flow. -/
def ValidRoute {N : ℕ} (H : Finset (Edge N)) (a b : Fin N) (r : PortTrailEncoding N) : Prop :=
r.2 0 = a ∧ r.2 (Fin.last (r.1.val + 1)) = b ∧
Function.Injective (routeEdge r) ∧ routeEdges r ⊆ H ∧
∀ i : Fin r.1.val,
r.2 ⟨i.val + 1, by omega⟩ ≠ a ∧ r.2 ⟨i.val + 1, by omega⟩ ≠ b
/-- PDF p.5: admissible trails computed from the successful external graph. -/
def candidateRoutes {N : ℕ} (H : Finset (Edge N)) (a b : Fin N) :
Finset (PortTrailEncoding N) := by
classical
exact Finset.univ.filter (ValidRoute H a b)
/-- PDF p.5: a simultaneous one-slot BSM schedule for the designated flow.
Shared repeater vertices are allowed; shared physical memories are not.
The schedule is selected from external flags before BSM outcomes. -/
def FeasibleFamily {N : ℕ} (H : Finset (Edge N)) (a b : Fin N)
(F : Finset (PortTrailEncoding N)) : Prop :=
F ⊆ candidateRoutes H a b ∧
∀ r ∈ F, ∀ s ∈ F, r ≠ s → Disjoint (routeEdges r) (routeEdges s)
/-- PDF p.4: BSM flags indexed by each selected trail's internal positions.
Unselected coordinates are ignored. In a feasible family selected coordinates
are distinct physical BSMs because they consume distinct incident memories. -/
abbrev InternalFlags (N : ℕ) := (Σ r : PortTrailEncoding N, Fin r.1.val) → Bool
/-- PDF p.4: the actual integer number of delivered ebits in one slot.
Feasibility requires the selected external links to have succeeded already. -/
def deliveredCount {N : ℕ} (F : Finset (PortTrailEncoding N)) (flags : InternalFlags N) : ℕ := by
classical
exact (F.filter (fun r => ∀ i : Fin r.1.val, flags ⟨r, i⟩ = true)).card
/-- PDF p.5: conditional expected yield, after external flags and before BSM
flags. Each selected trail contributes `q^(length-1)`; the sum uses linearity
of expectation, rather than multiplying path-success probabilities. -/
def conditionalYield {N : ℕ} (q : ℝ) (F : Finset (PortTrailEncoding N)) : ℝ :=
∑ r ∈ F, q ^ r.1.val
/-- PDF p.5: finite set of all feasible schedules, including the empty one. -/
def feasibleFamilies {N : ℕ} (H : Finset (Edge N)) (a b : Fin N) :
Finset (Finset (PortTrailEncoding N)) := by
classical
exact Finset.univ.filter (FeasibleFamily H a b)
/-- PDF p.5: select a shortest surviving route, with a minimizing tie choice
fixed independently of future BSM outcomes. A shortest trail is a simple path. -/
def shortestRoute {N : ℕ} (H : Finset (Edge N)) (a b : Fin N) : Option (PortTrailEncoding N) := by
classical
let S := candidateRoutes H a b
exact if h : S.Nonempty then
some (Classical.choose (S.exists_min_image routeLength h)) else none
/-- PDF p.5: shortest-path greedy, deleting physical edges after every choice.
An initial physical-edge count of fuel suffices because every route consumes
at least one remaining edge. No schedule depends on future BSM flags. -/
def greedySteps {N : ℕ} (a b : Fin N) : ℕ → Finset (Edge N) → Finset (PortTrailEncoding N)
| 0, _ => ∅
| fuel + 1, H => by
classical
exact match shortestRoute H a b with
| none => ∅
| some r => insert r (greedySteps a b fuel (H \ routeEdges r))
/-- PDF p.5: the complete prescribed greedy schedule in a successful graph. -/
def greedyFamily {N : ℕ} (H : Finset (Edge N)) (a b : Fin N) : Finset (PortTrailEncoding N) :=
greedySteps a b H.card H
/-- PDF p.5: the actual finite optimum over one-slot BSM schedules, computed
from the successful graph. This is not a free function constrained by the
desired bound. Randomizing schedules cannot improve a finite maximum. -/
def conditionalOptimum {N : ℕ} (H : Finset (Edge N)) (a b : Fin N) (q : ℝ) : ℝ := by
classical
exact (feasibleFamilies H a b).fold max 0 (conditionalYield q)
/-- PDF pp.4–5: probability of exactly a given external outcome `H`.
Callers sum over subsets, so subtraction counts failures without truncation.
Zero exponents express empty products, including at `p=0,1`. -/
def externalMass {N : ℕ} (G : GridNetwork N) (p : ℝ) (H : Finset (Edge N)) : ℝ :=
p ^ H.card * (1 - p) ^ ((physicalEdges G).card - H.card)
/-- PDF p.5: greedy expected ebits per slot, averaging the actual protocol
path-sum yield over independent external-success subsets. -/
def greedyRate {N : ℕ} (G : GridNetwork N) (a b : Fin N) (p q : ℝ) : ℝ :=
∑ H ∈ (physicalEdges G).powerset,
externalMass G p H * conditionalYield q (greedyFamily H a b)
/-- PDF p.5: globally optimal one-slot pairwise-swap expected yield. Only
external flags are observed before selecting the optimal schedule. -/
def optimalGlobalRate {N : ℕ} (G : GridNetwork N) (a b : Fin N) (p q : ℝ) : ℝ :=
∑ H ∈ (physicalEdges G).powerset,
externalMass G p H * conditionalOptimum H a b q
example (p : ℝ) (flags : Fin 0 → Bool) : iidMass p flags = 1 := by
simp [iidMass]
example {N : ℕ} (a b : Fin N) : edgeKey a b = edgeKey b a := by
simp [edgeKey, min_comm, max_comm]
example {N : ℕ} (flags : InternalFlags N) :
deliveredCount (∅ : Finset (PortTrailEncoding N)) flags = 0 := by
simp [deliveredCount]
example {N : ℕ} (q : ℝ) : conditionalYield q (∅ : Finset (PortTrailEncoding N)) = 0 := by
simp [conditionalYield]
example {N : ℕ} (a b : Fin N) :
greedySteps a b 0 (∅ : Finset (Edge N)) = ∅ := by
rfl
example {I : Type*} [Fintype I] (p : ℝ) :
bernoulliFlagEvent (I := I) p (fun _ => False) = 0 := by
simp [bernoulliFlagEvent]
example {N : ℕ} (r : PortTrailEncoding N) : 0 < routeLength r := by
exact Nat.succ_pos _
example {N : ℕ} (H : Finset (Edge N)) (a b : Fin N) :
FeasibleFamily H a b ∅ := by
simp [FeasibleFamily]
example {N : ℕ} (F : Finset (PortTrailEncoding N)) :
deliveredCount F (fun _ => true) = F.card := by
simp [deliveredCount]
example {N : ℕ} (G : GridNetwork N) (p : ℝ) :
externalMass G p ∅ = (1 - p) ^ (physicalEdges G).card := by
simp [externalMass]
example {N : ℕ} (a b : Fin N) (H : Finset (Edge N))
(fuel : ℕ) (h : shortestRoute H a b = none) :
greedySteps a b (fuel + 1) H = ∅ := by
simp [greedySteps, h]
end
end QAlgorithms.Papers.Independent.Intakethird100.P45
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intakethird100.P45.Edge
For every natural number , an edge is defined to be any ordered pair of labels from . This type permits equal endpoints and includes both orders of every pair of distinct endpoints; it imposes no geometric or adjacency condition. For , there are no such pairs.
QAlgorithms.Papers.Independent.Intakethird100.P45.FeasibleFamily
For every natural number , every finite set of ordered pairs from , every , and every finite set of encodings with and entries , holds exactly when each encoding in starts at , ends at , has pairwise distinct pairs for , has all these pairs in , and has no intermediate entry equal to either endpoint, and, in addition, the sets of these pairs for any two distinct encodings in are disjoint. Distinct encodings may share vertices. The endpoints may coincide, intermediate entries may repeat subject to the stated conditions, and the intermediate-entry condition is vacuous for . The empty family satisfies the predicate. No additional adjacency condition is imposed, and when , no endpoints exist.
QAlgorithms.Papers.Independent.Intakethird100.P45.GridNetwork
For every natural number , a grid network consists of a position function from the labels to , together with the requirement that this function is injective: if two labels have the same position, then the labels are equal. Thus all labeled positions are distinct, with no further restriction on their coordinates. The case is included, with an empty position function and a vacuously satisfied injectivity condition.
QAlgorithms.Papers.Independent.Intakethird100.P45.InternalFlags
For every natural number , is the type of all Boolean-valued functions on pairs , where ranges over every encoding with and entries , and ranges over the indices . Thus a function assigns either true or false separately to each such pair, including pairs belonging to encodings that satisfy no route-validity conditions. An encoding with contributes no indices. For or , the entire indexing domain is empty, so there is exactly one such function.
QAlgorithms.Papers.Independent.Intakethird100.P45.PortTrailEncoding
For every natural number , is the type of pairs consisting of a natural number with and a sequence whose entries lie in . Thus the sequence has entries, and entries may repeat without restriction. No adjacency or edge conditions are imposed. When , this type is empty.
QAlgorithms.Papers.Independent.Intakethird100.P45.ValidRoute
For every natural number , every finite set of ordered pairs from , every , and every encoding with and entries , holds exactly when , , the pairs are distinct for distinct indices , every such pair belongs to , and and for every . Intermediate entries may repeat subject to these conditions, and is permitted. For , the intermediate-entry condition is vacuous and the distinct-pair condition is automatic, so validity requires precisely , , and . No lattice or other adjacency condition is imposed beyond membership in . When , neither endpoints nor encodings exist.
QAlgorithms.Papers.Independent.Intakethird100.P45.bernoulliFlagEvent
For any finite type , equipped with an enumeration of all its elements, any real number , and any predicate on Boolean assignments , define the event value to be
No restriction on or on the predicate is imposed. If is empty, there is exactly one assignment, and this value is if that assignment satisfies , and otherwise.
QAlgorithms.Papers.Independent.Intakethird100.P45.candidateRoutes
For every natural number , every finite set of ordered pairs from , and every , is the finite set of all encodings with and entries such that , , the pairs for are pairwise distinct and all belong to , and every entry with differs from both and . This set may be empty. The endpoints may coincide; intermediate entries may repeat subject to the stated conditions. For , there are no intermediate entries, and the sole pair must belong to . No additional adjacency condition is imposed. When , there are no endpoints for this definition.
QAlgorithms.Papers.Independent.Intakethird100.P45.chainProbability
For any natural number and any real numbers , define the chain value by summing over all external Boolean assignments on and all internal Boolean assignments on , where is natural-number subtraction, truncated at . A pair contributes unless every external and every internal flag is true; when both conditions hold, it contributes
Neither nor is restricted to . For , both assignments are empty, both universal conditions hold vacuously, and the value is ; for , there are no internal flags and the value is .
QAlgorithms.Papers.Independent.Intakethird100.P45.conditionalOptimum
For any natural number , finite set with , endpoints , and real number , this defines
Here a route consists of a length with and a vertex sequence . It is admissible when it starts at , ends at , its canonical edge pairs are distinct members of , and none of its intermediate vertices equals either endpoint; other vertex repetitions are permitted. A feasible family is a finite set of admissible encoded routes whose edge sets are disjoint for every two distinct members. The empty family is feasible and contributes . The maximum includes an explicit baseline of , and is unrestricted, so it may be negative or outside . A length-one route contributes , including when . There is no assumption that or that is a grid edge set; for , there are no endpoint inputs.
QAlgorithms.Papers.Independent.Intakethird100.P45.conditionalYield
For every natural number , every real number , and every finite set of encodings with and entries , is the real number . There are no restrictions on and no route-validity or disjointness requirements on . Each encoding with contributes , including when , since under this power convention. The empty sum is zero, and when , must be empty.
QAlgorithms.Papers.Independent.Intakethird100.P45.deliveredCount
For every natural number , every finite set of encodings with and entries , and every Boolean-valued function defined on all pairs of any such encoding and an index , is the natural number of encodings in for which is true for every . No route-validity, disjointness, or probabilistic assumptions are required. Every encoding in with is counted because its condition has no indices to check. An empty gives count zero; when , must be empty.
QAlgorithms.Papers.Independent.Intakethird100.P45.edgeKey
For every natural number and any labels , define their edge key to be the ordered pair
Equal labels are allowed and produce . If , there are no labels to supply.
QAlgorithms.Papers.Independent.Intakethird100.P45.endpointDegree
For every natural number , every grid network given by an injective position map , and every label , define the endpoint degree of to be the number of pairs satisfying , , and or . This number is if no such pair exists. For , there is no label to supply.
QAlgorithms.Papers.Independent.Intakethird100.P45.externalMass
For any natural number , a grid network assigning distinct positions to the vertices , any real number , and any finite set , let
The definition assigns the real number
There is no requirement that , and the subtraction in the second exponent is natural-number subtraction, so that exponent is whenever . There is also no restriction on . Every zeroth power is , including ; in particular, when , both edge sets are empty and the value is .
QAlgorithms.Papers.Independent.Intakethird100.P45.feasibleFamilies
For every natural number , every finite set of ordered pairs from , and every , is the finite set of all finite sets of encodings with and entries satisfying the following conditions: every encoding in starts at , ends at , has pairwise distinct pairs for , has every such pair in , and has each intermediate entry different from both endpoints; furthermore, any two distinct encodings in have disjoint sets of these pairs. The empty family is included, so this set of families is nonempty whenever its endpoint arguments exist. The endpoints may coincide, shared vertices between encodings are permitted, and for the intermediate-entry condition is vacuous. No additional adjacency condition is imposed. When , no endpoints exist.
QAlgorithms.Papers.Independent.Intakethird100.P45.greedyFamily
For any natural number , finite set with , and endpoints , this defines a finite set of routes by running the following procedure for at most steps, starting with . A route is encoded by a length with and vertices ; it is admissible in a remaining edge set when , , the canonical pairs for are distinct members of , and every intermediate vertex differs from both endpoints. Other vertex repetitions are allowed. If no steps remain, or no admissible route exists, the procedure returns the empty set. Otherwise, it selects an admissible route of minimum length by a fixed classical choice, removes all its canonical edge pairs from , recursively continues with one fewer step, and inserts the selected route into the resulting finite set. Thus the initial step allowance is exactly the number of pairs in , including any pairs that cannot occur in an admissible route. Empty gives an empty family. No grid structure or inequality is assumed; for , there are no endpoint inputs.
QAlgorithms.Papers.Independent.Intakethird100.P45.greedyRate
For any natural number , an injective assignment on defining a grid network , endpoints , and arbitrary real numbers , let consist of the pairs with whose positions have Manhattan distance . This defines
A route is encoded by a length and vertices . It is admissible in an edge set when , , its canonical edge pairs are all distinct and belong to , and every intermediate vertex differs from both endpoints; other vertex repetitions are allowed. The finite set is constructed starting with and available steps: with zero steps or no admissible route, return the empty set; otherwise select an admissible route of minimum length by a fixed classical choice, remove its edge set, recursively continue with one fewer step, and insert the selected route into the resulting set. The outer sum includes every subset of , including the empty set, and all exponents are nonnegative integers. Empty inner sums are , and zeroth powers are , including . Neither nor is assumed; when , no endpoint inputs exist.
QAlgorithms.Papers.Independent.Intakethird100.P45.greedySteps
For any natural number and vertices in , this defines a function taking a natural number of steps and a finite set to a finite set of encoded routes. An encoded route consists of an integer with and a vertex sequence ; its length is , and its edge set is . Such a route is admissible in from to when , , its canonical edge pairs are all distinct and belong to , and every intermediate vertex differs from both and . Other repetitions of vertices are permitted. The definition is
where is the route selected by a fixed classical choice from the admissible routes of minimum length; the definition supplies no further rule for resolving ties. The union is a set union, so repeated encodings would be counted only once. There is no assumption that or that comes from a grid, and zero steps always returns the empty set. For , there are no choices of endpoints .
QAlgorithms.Papers.Independent.Intakethird100.P45.iidMass
For any finite type , equipped with an enumeration of all its elements, any real number , and any Boolean assignment , define its mass to be
There is no assumption that . If is empty, the product equals .
QAlgorithms.Papers.Independent.Intakethird100.P45.latticeDistance
For any two integer-coordinate points and , define their lattice distance to be the natural number
where each absolute value is regarded as a natural number. Coincident points are allowed and have distance .
QAlgorithms.Papers.Independent.Intakethird100.P45.optimalGlobalRate
For any natural number , a grid network given by an injective assignment of positions to , endpoints , and arbitrary real numbers , let be the set of pairs with and Manhattan distance between and . This defines
An encoded route consists of a length and a vertex sequence . It is admissible when it starts at , ends at , its canonical edge pairs are distinct members of , and all intermediate vertices differ from both endpoints; other vertex repetitions are permitted. A feasible family is a finite set of such routes with disjoint edge sets for every two distinct members. The empty family is feasible and has sum , and each maximum also explicitly includes . The outer sum includes the empty subset. The parameters and need not lie in , and the endpoints need not be distinct. All zeroth powers, including , equal , so a length-one route contributes . For , there are no endpoint inputs.
QAlgorithms.Papers.Independent.Intakethird100.P45.physicalEdges
For every natural number and every grid network given by an injective position map , define its physical edges to be the finite set of all ordered label pairs satisfying
Thus each included pair has distinct endpoints and is recorded with its smaller label first. The set may be empty, and is empty when or .
QAlgorithms.Papers.Independent.Intakethird100.P45.retainedLinkProbability
For any natural number , including , and any real number , define the retained-link value by summing over all Boolean assignments on : an assignment contributes if at least one is true, and contributes otherwise, where when is true and when it is false. There is no assumption that . For , the existential condition is false for the unique empty assignment, so the value is .
QAlgorithms.Papers.Independent.Intakethird100.P45.routeEdge
For every natural number , every encoding with and entries , and every integer index with , the value is the ordered pair , whose two coordinates lie in . Equal consecutive entries give the pair , and different indices may give the same pair; no adjacency requirement is imposed. When , there is no such encoding.
QAlgorithms.Papers.Independent.Intakethird100.P45.routeEdges
For every natural number and every encoding with and entries , is the finite set . Repeated pairs appear only once in this set. The set is nonempty because , and it may contain pairs with equal coordinates; no adjacency condition is imposed. When , there is no encoding to which this definition can be applied.
QAlgorithms.Papers.Independent.Intakethird100.P45.routeLength
For every natural number and every encoding , where and , is the natural number . Consequently, every encoding has length between and , inclusive; length zero is excluded. When , there is no encoding to which this definition can be applied.
QAlgorithms.Papers.Independent.Intakethird100.P45.shortestRoute
For every natural number , every finite set of ordered pairs from , and every , consider all encodings with and entries such that , , the pairs for are pairwise distinct and all belong to , and every intermediate entry differs from both and . If there are no such encodings, returns no encoding; otherwise, it returns one chosen encoding whose length is less than or equal to the length of every encoding satisfying these conditions. No tie-breaking rule is specified beyond the classical choice of a minimizing encoding. The endpoints may coincide, intermediate entries may repeat subject to the stated conditions, and has no intermediate-entry restriction and gives length . No additional adjacency condition is imposed. When , no endpoints exist.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.