AFTD Auto-Formalizing Theoretical Domains

Mixable.mix_ab

defimported Lean

Mixable.mix_ab

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open NNReal in
open Classical in
variable {T U : Type*} [AddCommMonoid U] [Module ℝ U] in
@[reducible]
noncomputable def Mixable.mix_ab [inst : Mixable U T] {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hab : a + b = 1) (x₁ x₂ : T) : T
Defined in
QuantumInfo, `Mixable.mix_ab`
Lean proof
By Alex Meiburg, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2025 Alex Meiburg. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
17 Oct 2026
Axioms
none listed
Built on 1
  • MixableA Mixable T typeclass instance gives a compact way of talking about the action of probabilities for forming linear combinations in…

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open NNReal in
open Classical in
variable {T U : Type*} [AddCommMonoid U] [Module ℝ U] in
@[reducible]
noncomputable def Mixable.mix_ab [inst : Mixable U T] {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hab : a + b = 1) (x₁ x₂ : T) : T :=
  inst.mkT <| inst.convex
    (x := to_U x₁) (exists_apply_eq_apply _ _)
    (y := to_U x₂) (exists_apply_eq_apply _ _)
    ha hb hab
See it in the graphDiscuss this resultChallenge it