Download data/lean/OAI/Analysis/HardSphere/Geometry/FinsetEraseRecursion.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.7 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HardSphere/Geometry/FinsetEraseRecursion.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/HardSphere/Geometry/FinsetEraseRecursion.lean
-
curl -L -o FinsetEraseRecursion.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HardSphere/Geometry/FinsetEraseRecursion.lean
1.7 kB
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory Filter Set | |
| open scoped ENNReal Topology BigOperators | |
| open scoped BigOperators ComplexConjugate | |
| open MeasureTheory ProbabilityTheory Filter Set | |
| open scoped ENNReal NNReal Topology BigOperators | |
| open MeasureTheory ProbabilityTheory Real Complex | |
| open scoped ENNReal ComplexConjugate | |
| open ProbabilityTheory | |
| namespace HardSphere | |
| open MeasureTheory Set Filter | |
| lemma finset_erase_recursion {S : Type*} [DecidableEq S] (a : Finset S β β) (q : β) | |
| (hq : 0 β€ q) (h0 : a β β€ 1) | |
| (hr : β A : Finset S, A.Nonempty β (A.card : β)*a A β€ q*β sβA, a (A.erase s)) : | |
| β A : Finset S, a A β€ q^A.card := by | |
| intro A | |
| induction A using Finset.strongInductionOn with | |
| | _ A ih => | |
| by_cases hA : A.Nonempty | |
| Β· have hc : 0 < (A.card : β) := by exact_mod_cast hA.card_pos | |
| have hs : (β sβA, a (A.erase s)) β€ (A.card : β)*q^(A.card-1) := by | |
| calc | |
| _ β€ β _sβA, q^(A.card-1) := Finset.sum_le_sum fun s hs β¦ by | |
| have hh := ih (A.erase s) (Finset.erase_ssubset hs) | |
| rwa [Finset.card_erase_of_mem hs] at hh | |
| _ = _ := by simp | |
| have he : q*((A.card : β)*q^(A.card-1))=(A.card : β)*q^A.card := by | |
| rw [show q^A.card=q^(A.card-1)*q by | |
| conv_lhs => rw [β Nat.sub_add_cancel hA.card_pos] | |
| rw [pow_succ]] | |
| ring | |
| have ht := (hr A hA).trans ((mul_le_mul_of_nonneg_left hs hq).trans_eq he) | |
| exact (mul_le_mul_iff_rightβ hc).mp (by simpa only [mul_comm (A.card : β)] using ht) | |
| Β· have he : A=β := Finset.not_nonempty_iff_eq_empty.mp hA | |
| simpa [he] using h0 | |
| end HardSphere | |
| end | |
| end OAI | |