Download lean/OAI/Probability/ContinuumTransition/BoundarySum.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/ContinuumTransition/BoundarySum.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Probability/ContinuumTransition/BoundarySum.lean
-
curl -L -o BoundarySum.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/ContinuumTransition/BoundarySum.lean
1.08 kB
| import OAI.Probability.ContinuumTransition.KacBlocks | |
| namespace OAI | |
| universe u_1 | |
| section | |
| open scoped BigOperators | |
| namespace ContinuumTemperature | |
| open Classical | |
| theorem sum_supported_rows_le {α : Type u_1} [DecidableEq α] (s T : Finset α) (M : ℝ) (hM : 0 ≤ M) | |
| (J : α → α → ℝ) (hrow : ∀ k : s, (∑ l : s, J k l) ≤ M) : | |
| (∑ k : s, ∑ l : s, if (k : α) ∈ T then J k l else 0) ≤ T.card*M := by | |
| have hh : (∑ k : s, ∑ l : s, if (k : α) ∈ T then J k l else 0) ≤ | |
| ∑ k : s, if (k : α) ∈ T then M else 0 := by | |
| apply Finset.sum_le_sum | |
| intro k _ | |
| split_ifs with hk | |
| · simpa only [ite_eq_left hk] using hrow k | |
| · simp only [Finset.sum_const_zero, le_refl] | |
| apply hh.trans | |
| rw [Finset.sum_coe_sort s (fun k : α => if k ∈ T then M else 0), ← Finset.sum_filter] | |
| simp only [Finset.sum_const, nsmul_eq_mul] | |
| have hs : s.filter (fun k => k ∈ T) ⊆ T := fun _ hk => (Finset.mem_filter.mp hk).2 | |
| exact mul_le_mul_of_nonneg_right (by exact_mod_cast Finset.card_le_card hs) hM | |
| end ContinuumTemperature | |
| end | |
| end OAI | |