module public import D5.S3.Quantum.Subentropy.StrongSubadditivityRefutation import all D5.S3.Quantum.Subentropy.StrongSubadditivityRefutation /-! The Bell-pair example in Section 5 and the uniform product in Section 7. The Bell witness, its exact gap, and the uniform product matrix are taken from the Omega Institute's pinned development; the sign here is the manuscript convention. -/ @[expose] public section noncomputable section set_option backward.isDefEq.respectTransparency false open D5.S3.Quantum.Subentropy.Basic open D5.S3.Quantum.Subentropy.UniformValues open D5.S3.Quantum.Subentropy.StrongSubadditivityRefutation open D5.S3.Quantum.Foundation.FiniteStateChannel open D5.S3.Quantum.Information.PartialTraceMutualInformation namespace SubentropyCertificates.SSAExamples /-- A Bell pair and an independent maximally mixed qubit have SSA deficit minus one twelfth. -/ theorem bell_pair_ssa_deficit : subentropy (marginalRight witness) + subentropy (marginalLeft (reassocState witness)) - subentropy (marginalLeft (marginalRight witness)) - subentropy witness = -(1 / 12) := by linarith only [witness_gap] /-- Two independent maximally mixed qubits have subadditivity deficit one twelfth. -/ theorem uniform_product_subadditivity_deficit : let ρ := productState uniformTwo uniformTwo subentropy (marginalRight ρ) + subentropy (marginalLeft ρ) - subentropy ρ = 1 / 12 := by dsimp only rw [marginalRight_productState uniformTwo uniformTwo, marginalLeft_productState uniformTwo uniformTwo] have htwo : subentropy uniformTwo = Real.log 2 - 1 / 2 := by simpa [subentropy, uniformTwo] using subentropy_uniformTwo (ι := Fin 2) (by decide) have hfour : subentropy (productState uniformTwo uniformTwo) = Real.log 4 - 13 / 12 := by unfold subentropy rw [uniform_product_matrix] simpa using subentropy_uniformFour (ι := Fin 2 × Fin 2) (by decide) have hlog : Real.log 4 = 2 * Real.log 2 := by have h := Real.log_pow (2 : ℝ) 2 norm_num at h exact h rw [htwo, hfour, hlog] ring end SubentropyCertificates.SSAExamples