Download data/lean/OAI/Geometry/HyperbolicGroups/Candidate.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.13 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/HyperbolicGroups/Candidate.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/HyperbolicGroups/Candidate.lean
-
curl -L -o Candidate.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/HyperbolicGroups/Candidate.lean
2.13 kB
| import Mathlib | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open scoped BigOperators | |
| namespace HyperbolicObstruction | |
| namespace BernoulliCandidates | |
| variable {V A : Type*} [Fintype V] [Fintype A] [DecidableEq A] | |
| /-- A convenient subset of the actual fieldwise-injective candidates consists | |
| of globally injective free values avoiding every pinned letter. This is only a | |
| lower bound; the actual candidate set does not prohibit cross-field coincidences. -/ | |
| lemma card_lower_of_embeddings (C : Finset (V β A)) (B : Finset A) | |
| (hC : β f : V βͺ {a : A // a β B}, (fun v => (f v).val) β C) : | |
| ((Fintype.card A - B.card).descFactorial (Fintype.card V)) β€ C.card := by | |
| classical | |
| have hi : Function.Injective (fun f : V βͺ {a : A // a β B} => | |
| (β¨fun v => (f v).val, hC fβ© : C)) := by | |
| intro f g h | |
| apply DFunLike.ext | |
| intro v | |
| exact Subtype.ext (congrFun (congrArg Subtype.val h) v) | |
| have hh := Fintype.card_le_of_injective _ hi | |
| rw [Fintype.card_embedding_eq] at hh | |
| have hb : Fintype.card {a : A // a β B} = Fintype.card A - B.card := by | |
| simp | |
| simpa only [hb, Fintype.card_coe] using hh | |
| lemma real_descFactorial_lower (N b v : β) (h : 2 * (b + v) β€ N) : | |
| ((N : β) / 2) ^ v β€ ((N - b).descFactorial v : β) := by | |
| have hb : b β€ N := by omega | |
| have hnv : v β€ N - b + 1 := by omega | |
| have hs : (N : β) / 2 β€ (N - b + 1 - v : β) := by | |
| rw [Nat.cast_sub hnv, Nat.cast_add, Nat.cast_sub hb] | |
| push_cast | |
| have h' : (2 : β) * (b + v) β€ N := by exact_mod_cast h | |
| linarith | |
| exact (pow_le_pow_leftβ (by positivity) hs v).trans | |
| (by exact_mod_cast (N - b).pow_sub_le_descFactorial v) | |
| lemma card_lower_half (C : Finset (V β A)) (B : Finset A) | |
| (hC : β f : V βͺ {a : A // a β B}, (fun v => (f v).val) β C) | |
| (h : 2 * (B.card + Fintype.card V) β€ Fintype.card A) : | |
| ((Fintype.card A : β) / 2) ^ Fintype.card V β€ C.card := by | |
| exact (real_descFactorial_lower _ _ _ h).trans | |
| (by exact_mod_cast card_lower_of_embeddings C B hC) | |
| end BernoulliCandidates | |
| end HyperbolicObstruction | |
| end | |
| end | |
| section | |
| end | |
| end | |
| end OAI | |