Buckets:
| import Mathlib | |
| import OAI.Combinatorics.RamseyFive.Entropy.SequentialLaw | |
| namespace OAI | |
| namespace SharpRamseyFive.FiniteEntropy | |
| open scoped Classical BigOperators | |
| variable {α β γ : Type*} [Fintype α] [Fintype β] [Fintype γ] | |
| lemma independent_second (p : Law α) (q : Law β) : | |
| map (adaptiveLaw p (fun _=>q)) Prod.snd=q := by | |
| apply Law.ext | |
| funext b | |
| change (∑z : α×β,if z.2=b then p z.1*q z.2 else 0)=q b | |
| rw [Fintype.sum_prod_type] | |
| simp only [Finset.sum_ite_eq',Finset.mem_univ,ite_true] | |
| rw [←Finset.sum_mul,p.sum_one,one_mul] | |
| lemma independent_first (p : Law α) (q : Law β) : | |
| map (adaptiveLaw p (fun _=>q)) Prod.fst=p := by | |
| apply Law.ext | |
| funext a | |
| simp [map,adaptiveLaw,Fintype.sum_prod_type,←Finset.mul_sum,q.sum_one] | |
| lemma map_independent_left (p : Law α) (q : Law β) (f : α→γ) : | |
| map (adaptiveLaw p (fun _=>q)) (fun z=>f z.1)=map p f := by | |
| have h := congrArg (fun r=>map r f) (independent_first p q) | |
| simpa only [map_comp,Function.comp_def] using h | |
| lemma map_independent_right (p : Law α) (q : Law β) (f : β→γ) : | |
| map (adaptiveLaw p (fun _=>q)) (fun z=>f z.2)=map q f := by | |
| have h := congrArg (fun r=>map r f) (independent_second p q) | |
| simpa only [map_comp,Function.comp_def] using h | |
| end SharpRamseyFive.FiniteEntropy | |
| end OAI | |
Xet Storage Details
- Size:
- 1.3 kB
- Xet hash:
- 06529242c571dfcd596cdc1efc67acade7eacc9952b8d5f881c0a9fe437ea0a5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.