roseking's picture
Add lean source and binary files (part 84)
cdec422 verified
Raw History Blame Contribute Delete
2.4 kB
18
lemma rho_density : Density rho := DimensionTen.rho_density
20
lemma trace_ne_zero : trace DimensionTen.compositeChoi ≠ 0 :=
proof · 1 line
  DimensionTen.compositeChoi_trace_ne
23
lemma rho_not_separable : ¬ Separable rho := DimensionTen.rho_entangled
25
lemma rho_productfree :
    ∀ u v : Fin 10 → ℂ, ∀ w : Fin 10 × Fin 10 → ℂ,
      rho *ᵥ w = DimensionTen.productVector u v → u = 0 ∨ v = 0 :=
proof · 1 line
  DimensionTen.rho_productfree
30
def TransferInput : Prop :=
body · 1 line
  ChoiTransfer.PublishedTransfer DimensionTen.phiOneLinear DimensionTen.phiTwoLinear
33
def PPTInput : Prop :=
body · 1 line
  ChoiTransfer.PublishedPPT DimensionTen.phiOneLinear DimensionTen.phiTwoLinear
36
lemma rho_inClass_conditional (hppt : PPTInput) (htransfer : TransferInput) :
    InClass rho := by
proof · 4 lines
  have h := ChoiTransfer.normalized_inClass_conditional
    DimensionTen.phiOneLinear DimensionTen.phiTwoLinear hppt htransfer
  rw [DimensionTen.linear_composite_choi] at h
  exact h DimensionTen.compositeChoi_posSemidef DimensionTen.compositeChoi_ne
43
theorem main_state_conditional (hppt : PPTInput) (htransfer : TransferInput) :
    MainClaim.{u} := by
proof · 5 lines
  have hc := rho_inClass_conditional hppt htransfer
  exact ⟨rho_density, rho_not_separable, rho_productfree,
    class_distillableSecretKey_zero rho rho_density hc,
    class_uniformProtocolGap rho rho_density hc,
    class_uniformCompletedGap rho rho_density hc⟩
59
theorem pptInput : PPTInput :=
proof · 1 line
  ChoiTransfer.publishedPPT DimensionTen.phiOneLinear_ppt DimensionTen.phiTwoLinear_ppt
62
theorem transferInput : TransferInput :=
proof · 2 lines
  ChoiTransfer.publishedTransfer DimensionTen.phiOneLinear DimensionTen.phiTwoLinear
    DimensionTen.phiOneLinear_cp
66
theorem rho_inClass : InClass rho :=
proof · 1 line
  rho_inClass_conditional pptInput transferInput
69
theorem main_state : MainClaim.{u} :=
proof · 1 line
  main_state_conditional pptInput transferInput