cfahlgren1's picture
download
raw
4.38 kB
import Mathlib
import OAI.LinearAlgebra.MatrixFields.Certificates.SplitB1_1_6
namespace OAI
namespace MatrixAllFields
open scoped BigOperators Topology Polynomial
section
noncomputable section
namespace MatrixMultiplication.NativeNumerics
open AllFieldParameters AllFieldHistory AllFieldCertificates AllFieldCertificates.Replay
open AllFieldInitialEntropyCertificate AllFieldNativeCapacity
open scoped BigOperators
def CB1_1_6I0Value (a : Fin 17) : ℝ := marginal (below (shape 1 1 6)) (fun u => (stageBLaw (shape 1 1 6) u : ℝ)) ((stageBPriority (shape 1 1 6)) 0) a
def CB1_1_6I0Raw (a : Fin 17) : Ball := marginalBall (below (shape 1 1 6)) B1_1_6Law ((stageBPriority (shape 1 1 6)) 0) a
lemma CB1_1_6I0Raw_sound (a : Fin 17) :
(CB1_1_6I0Raw a).Encloses (CB1_1_6I0Value a) := by
exact marginalBall_sound (below (shape 1 1 6)) B1_1_6Law (fun u => (stageBLaw (shape 1 1 6) u : ℝ)) (fun u _ => B1_1_6Law_sound u) ((stageBPriority (shape 1 1 6)) 0) a
def CB1_1_6I0Certificates : List CompactCertificate.EntropyDatum :=
[.zero,
.log ⟨(1 / 2), (3 / 50000000000000000000000000000000)⟩ ⟨(6931471805599453094172319305033 / 20000000000000000000000000000000), (21175823693 / 100000000000000000000000000000000)⟩ ⟨(-6931471805599453094172319305033 / 10000000000000000000000000000000), (42351647377 / 100000000000000000000000000000000)⟩ ⟨-1, 1, 1⟩]
lemma CB1_1_6I0Certificates_valid :
CB1_1_6I0Certificates.all (fun c => c.check logTwoBall) = true := by decide +kernel
def CB1_1_6I0CertificateIndex (a : Fin 17) : ℕ :=
match a.val with
| 0 => 1
| 1 => 1
| _ => 0
def CB1_1_6I0P (a : Fin 17) : Ball :=
(CompactCertificate.entropyLookup CB1_1_6I0Certificates (CB1_1_6I0CertificateIndex a)).input
lemma CB1_1_6I0P_check : ∀ a : Fin 17, contains (CB1_1_6I0Raw a) (CB1_1_6I0P a) = true := by
decide +kernel
lemma CB1_1_6I0P_sound (a : Fin 17) :
(CB1_1_6I0P a).Encloses (CB1_1_6I0Value a) :=
contains_sound (CB1_1_6I0Raw_sound a) (CB1_1_6I0P_check a)
def CB1_1_6I0Terms (a : Fin 17) : Ball :=
(CompactCertificate.entropyLookup CB1_1_6I0Certificates (CB1_1_6I0CertificateIndex a)).output
lemma CB1_1_6I0Terms_sound (a : Fin 17) :
(CB1_1_6I0Terms a).Encloses (Foundation.entropyTerm (CB1_1_6I0Value a)) :=
CompactCertificate.entropyLookup_sound logTwoBall_sound CB1_1_6I0Certificates_valid
(CB1_1_6I0CertificateIndex a) (CB1_1_6I0P_sound a)
def CB1_1_6I0Entropy : Ball := ⟨(6931471805599453094172319305033 / 10000000000000000000000000000000), (21175823693 / 50000000000000000000000000000000)⟩
lemma CB1_1_6I0Entropy_sound : CB1_1_6I0Entropy.Encloses (Foundation.finiteEntropy CB1_1_6I0Value) := by
exact contains_sound (entropyFin_enclosed 17 CB1_1_6I0Value CB1_1_6I0Terms CB1_1_6I0Terms_sound) (by decide +kernel)
def CB1_1_6I0Mass : Ball := ⟨1, (3 / 25000000000000000000000000000000)⟩
lemma CB1_1_6I0Mass_sound : CB1_1_6I0Mass.Encloses (∑ a, CB1_1_6I0Value a) := by
exact contains_sound (finSumBall_sound 17 CB1_1_6I0P CB1_1_6I0Value CB1_1_6I0P_sound) (by decide +kernel)
def CB1_1_6I0MassTermLogWitness : LogWitness := ⟨0, 1, 1⟩
def CB1_1_6I0MassTermLog : Ball := ⟨0, (10587911847 / 50000000000000000000000000000000)⟩
lemma CB1_1_6I0MassTermLog_sound : CB1_1_6I0MassTermLog.Encloses (Real.log ((∑ a, CB1_1_6I0Value a))) := by
exact checkLog_sound logTwoBall_sound (CB1_1_6I0Mass_sound) (w := CB1_1_6I0MassTermLogWitness) (by
simp only [checkLog, Bool.and_eq_true]
exact ⟨by decide +kernel, by decide +kernel⟩)
def CB1_1_6I0MassTerm : Ball := ⟨0, (4235164739 / 20000000000000000000000000000000)⟩
lemma CB1_1_6I0MassTerm_sound : CB1_1_6I0MassTerm.Encloses (Foundation.entropyTerm ((∑ a, CB1_1_6I0Value a))) := by
exact contains_sound (entropyTerm_ball (CB1_1_6I0Mass_sound) CB1_1_6I0MassTermLog_sound) (by decide +kernel)
def CB1_1_6I0H : Ball := ⟨(6931471805599453094172319305033 / 10000000000000000000000000000000), (63527471081 / 100000000000000000000000000000000)⟩
lemma CB1_1_6I0H_sound : CB1_1_6I0H.Encloses (homogeneousEntropy CB1_1_6I0Value) := by
exact contains_sound (homogeneous_enclosed CB1_1_6I0Value CB1_1_6I0MassTerm_sound CB1_1_6I0Entropy_sound) (by decide +kernel)
lemma CB1_1_6I0_sound : CB1_1_6I0H.Encloses (stageBCapacity (shape 1 1 6) 0) := by
exact CB1_1_6I0H_sound
end MatrixMultiplication.NativeNumerics
end
end
end MatrixAllFields
end OAI

Xet Storage Details

Size:
4.38 kB
·
Xet hash:
858dc4456c5007712174e88ea84ccfc3f8027cbfdea5f3c24a6dedaac0305c05

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.