OAI/Algebra/DepthFive/PairingWeights.lean
15 declarations, 0 contain sorry, 0 declared as axioms
- instance
OAI.Problem335.Pairings.vertexNonemptyline 12 - def
OAI.Problem335.Pairings.vertexPairEqline 19Source documentation
Agreement between the two labels of a normal pairing at a vertex.
def vertexPairEq {α : Type*} [DecidableEq α] {τ σ : Kind} (x : Vertex α τ σ) : ℝ := if x.1.p = x.1.r then 1 else 0Mentions: OAI.Problem335.Pairings.Kind, OAI.Problem335.Pairings.Vertex
- theorem
OAI.Problem335.Pairings.average_vertexPairEqline 22 - def
OAI.Problem335.Pairings.normalEndpointCountline 44Source documentation
Number of endpoints at which both adjacent pairing types are normal.
def normalEndpointCount {L : ℕ} (τ : Fin (L + 1) → Kind) (s : Finset (Fin L)) : ℕ := …Mentions: OAI.Problem335.Pairings.Kind
- def
OAI.Problem335.Pairings.endpointCoincidenceline 49Source documentation
Equality of both normal coordinates at all indicated internal endpoints.
def endpointCoincidence {α : Type*} [DecidableEq α] {L : ℕ} {τ : Fin (L + 1) → Kind} (s : Finset (Fin L)) (x : Assignments α τ) : ℝ := …Mentions: OAI.Problem335.Pairings.Kind, OAI.Problem335.Pairings.Assignments
- theorem
OAI.Problem335.Pairings.average_endpoint_groupline 53 - theorem
OAI.Problem335.Pairings.average_endpoint_correctionline 65 - theorem
OAI.Problem335.Pairings.average_assignment_correctionsline 74Source documentation
Exact average of normal-layer corrections for disjoint endpoint sets in actual relaxed vertex assignments, including forced-equality interfaces.
theorem average_assignment_corrections (α : Type*) [Fintype α] [DecidableEq α] [Nonempty α] {L : ℕ} (τ : Fin (L + 1) → Kind) {ι : Type*} [Fintype ι] [DecidableEq ι] (s : ι → Finset (Fin L)) (hs : Pairwise (fun i j => Disjoint (s i) (s j))) (c : ι → ℝ) : average (fun x : Assignments α τ => ∏ i, (1 + c i * endpointCoincidence (s i) x)) = ∏ i, (1 + c i * (Fintype.card α : ℝ)⁻¹ ^ normalEndpointCount τ (s i)) := by …Mentions: OAI.Problem335.Pairings.Kind, OAI.Problem335.Pairings.Assignments, OAI.Problem335.Pairings.endpointCoincidence, OAI.Problem335.Pairings.normalEndpointCount
- theorem
OAI.Problem335.Pairings.sum_assignment_correctionsline 94Source documentation
The weighted relaxed-assignment count: its unweighted count times the product of the independent normal-layer correction averages.
theorem sum_assignment_corrections (α : Type*) [Fintype α] [DecidableEq α] [Nonempty α] {L : ℕ} (τ : Fin (L + 1) → Kind) {ι : Type*} [Fintype ι] [DecidableEq ι] (s : ι → Finset (Fin L)) (hs : Pairwise (fun i j => Disjoint (s i) (s j))) (c : ι → ℝ) : (∑ x : Assignments α τ, ∏ i, (1 + c i * endpointCoincidence (s i) x)) = (Fintype.card α : ℝ) ^ (2 * L - adjacentSwitches τ) * ∏ i, (1 + c i * (Fintype.card α : ℝ)⁻¹ ^ normalEndpointCount τ (s i)) := by …Mentions: OAI.Problem335.Pairings.Kind, OAI.Problem335.Pairings.Assignments, OAI.Problem335.Pairings.endpointCoincidence, OAI.Problem335.Pairings.adjacentSwitches, OAI.Problem335.Pairings.normalEndpointCount
- def
OAI.Problem335.Pairings.internalEndpointSetline 111Source documentation
The internal vertices adjacent to a specified layer.
def internalEndpointSet {L : ℕ} (t : Fin (L + 1)) : Finset (Fin L) := … - theorem
OAI.Problem335.Pairings.internalEndpointSet_disjointline 115Source documentation
Distinct nonadjacent layers use disjoint internal vertex coordinates.
theorem internalEndpointSet_disjoint {L : ℕ} {i j : Fin (L + 1)} (hij : i ≠ j) (hforward : i.val + 1 ≠ j.val) (hbackward : j.val + 1 ≠ i.val) : Disjoint (internalEndpointSet i) (internalEndpointSet j) := by … - theorem
OAI.Problem335.Pairings.pairwise_internalEndpointSet_disjointline 132Source documentation
An injective family of pairwise nonadjacent layers meets the exact independence hypothesis of
sum_relaxedPaths_layer_corrections.theorem pairwise_internalEndpointSet_disjoint {L : ℕ} {ι : Type*} (t : ι → Fin (L + 1)) (ht : Function.Injective t) (hseparated : ∀ i j, i ≠ j → (t i).val + 1 ≠ (t j).val) : Pairwise (fun i j => Disjoint (internalEndpointSet (t i)) (internalEndpointSet (t j))) := by … - theorem
OAI.Problem335.Pairings.layer_coordinate_eq_iffline 141 - theorem
OAI.Problem335.Pairings.endpointCoincidence_eq_layer_indicatorline 181Source documentation
The product of endpoint indicators is exactly the full layer-coordinate coincidence indicator, including either fixed external endpoint.
theorem endpointCoincidence_eq_layer_indicator {α : Type*} [DecidableEq α] {L : ℕ} (a : α) (τ : Fin (L + 1) → Kind) (x : Assignments α τ) (t : Fin (L + 1)) : endpointCoincidence (internalEndpointSet t) x = if (zipLabels (closePaths a (fun v => (x v).val) t.castSucc) (closePaths a (fun v => (x v).val) t.succ)).p = (zipLabels (closePaths a (fun v => (x v).val) t.castSucc) (closePaths a (fun v => (x v).val) t.succ)).r then 1 else 0 := by …Mentions: OAI.Problem335.Pairings.Kind, OAI.Problem335.Pairings.Assignments, OAI.Problem335.Pairings.endpointCoincidence, OAI.Problem335.Pairings.internalEndpointSet, OAI.Problem335.Pairings.zipLabels, OAI.Problem335.Pairings.closePaths
- theorem
OAI.Problem335.Pairings.sum_relaxedPaths_layer_correctionsline 195Source documentation
Exact weighted count in terms of the actual layer coordinates of relaxed endpoint-fixed path quadruples. The sole combinatorial hypothesis is that the selected layers have disjoint internal endpoint sets.
theorem sum_relaxedPaths_layer_corrections (α : Type*) [Fintype α] [DecidableEq α] [Nonempty α] {L : ℕ} (a : α) (τ : Fin (L + 1) → Kind) {ι : Type*} [Fintype ι] [DecidableEq ι] (t : ι → Fin (L + 1)) (ht : Pairwise (fun i j => Disjoint (internalEndpointSet (t i)) (internalEndpointSet (t j)))) (c : ι → ℝ) : (∑ x : RelaxedPaths α a τ, ∏ i, (1 + c i * if (zipLabels (closePaths a x.val (t i).castSucc) (closePaths a x.val (t i).succ)).p = (zipLabels (closePaths a x.val (t i).castSucc) (closePaths a x.val (t i).succ)).r then 1 else 0)) = …Mentions: OAI.Problem335.Pairings.Kind, OAI.Problem335.Pairings.internalEndpointSet, OAI.Problem335.Pairings.RelaxedPaths, OAI.Problem335.Pairings.zipLabels, OAI.Problem335.Pairings.closePaths