Finite hash bundles and actual CW extraction certificates
Definitionmme_hash_extraction_certificateA finite hash bundle records finitely many physical recursive affine-hash problems, each with its own parameters and state-dependent usable family. Its budget asks for the ambient X-degree inequality and a total usable-incidence fraction of at least .
For a hash factor , set . A bundle also records a positive grouping cost , matrix dimensions , and a source power . Its algebraic realization predicate over a field requires every tuple of usable X-isolated families , with , to give the actual restriction
The conservative scalar rate is
The realization predicate is an explicit unproved algebraic obligation, including ownership, recursive construction and repair. Defining it does not establish a restriction or certify any numerical witness. These interfaces support a finite assembly theorem and a connected reduction of the live surplus goal.
import Definitions.Def_mme_recursive_x_hash_families
import Definitions.Def_mme_stothers_fourth_data
import Definitions.Def_mme_six_symmetrized_tau_value
open BigOperators MME.RecursiveThinSplit MME.RecursiveXHash
set_option autoImplicit false
universe u
namespace MME.HashExtraction
/-- One physical affine hash, with a specified family of usable retained copies.
Usability can encode the simultaneous Y/Z hole bounds needed for later repair. -/
structure HashData where
half : ℕ
R : ℕ
parent : Fin R → Fin 3 → ℕ
n : Fin R → ℕ
m : ∀ r, RecursiveThinSplit.Split half (parent r) → ℕ
N : ℕ
p : ℕ
prime : p.Prime
odd : Odd p
grade_lt : half < p
positions : Fin (N + 1) ≃ (r : Fin R) × Fin (n r)
labels : Finset ℕ
labels_range : labels ⊆ Finset.range (p / 2)
labels_free : ThreeAPFree (labels : Set ℕ)
good : ((Fin (N + 2) → ZMod p) × ZMod p) → Finset (Address half R parent n)
instance HashData.modulus_neZero (d : HashData) : NeZero d.p := ⟨d.prime.ne_zero⟩
abbrev HashData.State (d : HashData) := (Fin (d.N + 2) → ZMod d.p) × ZMod d.p
abbrev HashData.Edge (d : HashData) := Address d.half d.R d.parent d.n
noncomputable def HashData.retained (d : HashData) (q : d.State) : Finset d.Edge :=
bucketed d.m d.positions (d.labels.image (fun a : ℕ ↦ (a : ZMod d.p))) q
/-- The degree bound and the total usable-incidence estimate are separate,
explicit finite obligations. All losses are measured before choosing the state. -/
noncomputable def HashData.Budget (d : HashData) : Prop :=
8 * (ambient (n := d.n) d.m).card ≤
d.p * ((ambient (n := d.n) d.m).image (block 0)).card ∧
(7 / 8 : ℝ) * ((target (n := d.n) d.m).card * d.labels.card * (d.p : ℝ) ^ (d.N + 1)) ≤
∑ q, ((((target d.m).filter (fun a ↦ a ∈ d.retained q)) ∩ d.good q).card : ℝ)
noncomputable def HashData.Selection (d : HashData) (q : d.State) (I : Finset d.Edge) : Prop :=
I ⊆ target d.m ∧ I ⊆ d.retained q ∧ I ⊆ d.good q ∧
∀ a ∈ I, ∀ b ∈ d.retained q, block 0 a = block 0 b → a = b
noncomputable def HashData.lower (d : HashData) : ℝ :=
((target (n := d.n) d.m).card : ℝ) * d.labels.card / (2 * (d.p : ℝ) ^ 2)
/-- A finite bundle permits separate hashes in distinct regions or recursive
factors. The source theorem must realize their simultaneous selected product. -/
structure Data where
factors : ℕ
hash : Fin factors → HashData
repairCopies : ℕ
repair_pos : 0 < repairCopies
a : ℕ
b : ℕ
c : ℕ
power : ℕ
/-- Exact algebraic obligation, including ownership, recursion and hole repair.
Every tuple of sufficiently large usable isolated families must yield the displayed direct sum
from the literal six-symmetrized fourth CW tensor over the chosen field. -/
noncomputable def Data.Realizes (d : Data) (K : Type u) [Field K] : Prop :=
∀ (q : ∀ j, (d.hash j).State) (I : ∀ j, Finset (d.hash j).Edge),
(∀ j, (d.hash j).Selection (q j) (I j)) →
(∀ j, (d.hash j).lower ≤ ((I j).card : ℝ)) →
TensorObj.Restrict
(TensorObj.bigAdd (fun _ : Fin ((∏ j, (I j).card) / d.repairCopies) ↦
MMObj K d.a d.b d.c))
((sixSymmetrization (MME.StothersFourth.cwFourthObj K 5)).kronPow d.power)
/-- A conservative lower bound after grouping copies for repair; the subtraction
of one accounts for the integer floor. Its sign is unrestricted. -/
noncomputable def Data.rate (d : Data) (tau : ℝ) : ℝ :=
((∏ j, (d.hash j).lower) / d.repairCopies - 1) *
(((d.a * d.b * d.c : ℕ) : ℝ) ^ tau)
end MME.HashExtraction