Lean 4 · 11
declarations statementsfull
def trivial (a : Outcome) : Mat Four := if a=(1,1) then 1 else 0 def localProjection (S : Eight) (q : Question) (a : Outcome) : Mat Four := body · 3 lines
match contextAt S q with
| some t => h t a
| none => trivial alemma localProjection_six (S : Eight) (hS : OrthogonalEight S) (t : Fin 6) (a : Outcome) :
localProjection S (six S t) a=h t a := by proof · 1 line
simp only [localProjection,contextAt_six S hS]lemma localProjection_hermitian (S : Eight) (q : Question) (a : Outcome) :
(localProjection S q a).IsHermitian := by proof · 4 lines
unfold localProjection
cases contextAt S q with
| none => unfold trivial; split_ifs <;> simp
| some t => exact h_hermitian t alemma localProjection_real (S : Eight) (q : Question) (a : Outcome) (i j : Four) :
star (localProjection S q a i j)=localProjection S q a i j := by proof · 4 lines
unfold localProjection
cases contextAt S q with
| none => unfold trivial; split_ifs <;> simp [Matrix.one_apply]
| some t => exact h_real t a i jlemma localProjection_idempotent (S : Eight) (q : Question) (a : Outcome) :
localProjection S q a*localProjection S q a=localProjection S q a := by proof · 4 lines
unfold localProjection
cases contextAt S q with
| none => unfold trivial; split_ifs <;> simp
| some t => exact h_idempotent t alemma localProjection_orthogonal (S : Eight) (q : Question) (a b : Outcome) (hab : a ≠ b) :
localProjection S q a*localProjection S q b=0 := by proof · 4 lines
unfold localProjection
cases contextAt S q with
| none => unfold trivial; split_ifs <;> simp_all
| some t => exact h_orthogonal t a b hablemma localProjection_complete (S : Eight) (q : Question) :
∑ a, localProjection S q a=1 := by proof · 4 lines
unfold localProjection
cases contextAt S q with
| none => simp [trivial]
| some t => exact h_complete tlemma localProjection_commute_same (S : Eight) (q : Question) (a b : Outcome) :
localProjection S q a*localProjection S q b=
localProjection S q b*localProjection S q a := by proof · 3 lines
by_cases he : a=b
· subst b; rfl
· rw [localProjection_orthogonal S q a b he,localProjection_orthogonal S q b a (Ne.symm he)]lemma both_contexts_orthogonal (S : Eight) (q r : Question) (t v : Fin 6)
(hq : contextAt S q=some t) (hr : contextAt S r=some v) (hqr : q ≠ r) :
ProjectionCriterion.correlation u q r=0 := by proof · 3 lines
obtain ⟨hS,ht⟩ := contextAt_some S q t hq
obtain ⟨_,hv⟩ := contextAt_some S r v hr
apply hS q (ht ▸ six_mem S t) r (hv ▸ six_mem S v) hqrlemma localProjection_commute (S : Eight) (q r : Question) (a b : Outcome)
(hc : ProjectionCriterion.correlation u q r ≠ 0) :
localProjection S q a*localProjection S r b=
localProjection S r b*localProjection S q a := by proof · 9 lines
by_cases hqr : q=r
· subst r; exact localProjection_commute_same S q a b
unfold localProjection
cases hq : contextAt S q with
| none => unfold trivial; split_ifs <;> simp
| some t =>
cases hr : contextAt S r with
| none => unfold trivial; split_ifs <;> simp
| some v => exact (hc (both_contexts_orthogonal S q r t v hq hr hqr)).elimOutline
- def
trivial12 - def
localProjection13 - lemma
localProjection_six17 - lemma
localProjection_hermitian20 - lemma
localProjection_real26 - lemma
localProjection_idempotent32 - lemma
localProjection_orthogonal38 - lemma
localProjection_complete44 - lemma
localProjection_commute_same50 - lemma
both_contexts_orthogonal56 - lemma
localProjection_commute62
Xet Storage Details
- Size:
- 3.31 kB
- Xet hash:
- b2a449172de730317ac83f897ee09eaa1099e578f11bd3b029c99f785cad7813
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.