OAI/MathematicalPhysics/ContinuumCoulomb/Reduction/Thresholds.lean
5 declarations, 0 contain sorry, 0 declared as axioms
Promise transfer for continuum Coulomb energy
The numerical energy comparisons give rational threshold maps preserving both source promises and an output threshold gap of at least one.
- theorem
OAI.ContinuumCoulomb.binary_threshold_transferline 17Source documentation
The rational affine thresholds in 271-01, §6, equations
rounded-affine-errorandoutput-gap, preserve the source promises.theorem binary_threshold_transfer {sourceEnergy physicalEnergy sourceYes sourceNo slope offset : ℝ} (hslope : 0 < slope) (hgap : sourceYes < sourceNo) (herror : |physicalEnergy - (slope * sourceEnergy + offset)| ≤ (5 / 64 : ℝ) * slope * (sourceNo - sourceYes)) : (sourceEnergy ≤ sourceYes → physicalEnergy < slope * (sourceYes + (sourceNo - sourceYes) / 4) + offset) ∧ (sourceNo ≤ sourceEnergy → slope * (sourceNo - (sourceNo - sourceYes) / 4) + offset < physicalEnergy) := by … - theorem
OAI.ContinuumCoulomb.binary_output_gapline 38Source documentation
The binary-charge output loses exactly half of the scaled source gap.
theorem binary_output_gap (sourceYes sourceNo slope offset : ℝ) : (slope * (sourceNo - (sourceNo - sourceYes) / 4) + offset) - (slope * (sourceYes + (sourceNo - sourceYes) / 4) + offset) = slope * (sourceNo - sourceYes) / 2 := by … - theorem
OAI.ContinuumCoulomb.unit_threshold_transferline 47Source documentation
The unit-charge manuscript, §7, equation (10): the energy error and rounding errors have distinct budgets. The thresholds may be any rational approximations satisfying the stated real error bounds.
theorem unit_threshold_transfer {sourceEnergy physicalEnergy sourceYes sourceNo slope offset gamma outputYes outputNo : ℝ} (hslope : 0 < slope) (hgamma : 0 < gamma) (hgap : gamma ≤ sourceNo - sourceYes) (herror : |physicalEnergy - (slope * sourceEnergy + offset)| ≤ slope * gamma / 8) (hroundYes : |outputYes - (slope * (sourceYes + gamma / 4) + offset)| ≤ slope * gamma / 32) (hroundNo : |outputNo - (slope * (sourceNo - gamma / 4) + offset)| ≤ slope * gamma / 32) : (sourceEnergy ≤ sourceYes → physicalEnergy < outputYes) ∧ … - theorem
OAI.ContinuumCoulomb.unit_output_gap_at_least_oneline 76Source documentation
The unit-charge construction requests scaled gap at least eight.
theorem unit_output_gap_at_least_one {slope gamma outputYes outputNo : ℝ} (hscale : 8 ≤ slope * gamma) (hgap : (7 / 16 : ℝ) * slope * gamma ≤ outputNo - outputYes) : 1 ≤ outputNo - outputYes := by … - theorem
OAI.ContinuumCoulomb.inverse_length_precisionline 84Source documentation
An output threshold gap at least one meets precision exponent
c = 1for every positive total input length; there is no circular size estimate.theorem inverse_length_precision {outputYes outputNo : ℝ} {length : ℕ} (hlength : 1 ≤ length) (hgap : 1 ≤ outputNo - outputYes) : (length : ℝ)⁻¹ ≤ outputNo - outputYes := by …