Download data/lean/OAI/AlgebraicGeometry/DivisorClass/Chern/Compact/IntegralScaling.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.04 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/DivisorClass/Chern/Compact/IntegralScaling.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/DivisorClass/Chern/Compact/IntegralScaling.lean
-
curl -L -o IntegralScaling.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/DivisorClass/Chern/Compact/IntegralScaling.lean
3.04 kB
| import OAI.AlgebraicGeometry.DivisorClass.Chern.Rational.HolomorphicPeriod | |
| import Mathlib.Data.Rat.Floor | |
| /-! # Integral Scaling -/ | |
| namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Compact.IntegralScaling | |
| noncomputable section | |
| /-! Constructive common denominators for locally constant rational sections on compact sets. -/ | |
| open _root_.TopologicalSpace | |
| set_option backward.isDefEq.respectTransparency false | |
| set_option backward.isDefEq.respectTransparency.types false | |
| set_option backward.defeqAttrib.useBackward true | |
| def rationalCommonDenominator (s : Finset β) : β := β q β s, q.den | |
| theorem rationalCommonDenominator_pos (s : Finset β) : 0 < rationalCommonDenominator s := by | |
| exact Finset.prod_pos (fun q _ => q.den_pos) | |
| theorem rationalCommonDenominator_dvd (s : Finset β) (q : β) (hq : q β s) : | |
| q.den β£ rationalCommonDenominator s := | |
| Finset.dvd_prod_of_mem (fun q : β => q.den) hq | |
| theorem rational_scaled_integer_of_den_dvd (q : β) (N : β) (h : q.den β£ N) : | |
| ((((N / q.den : β) : β€) * q.num : β€) : β) = (N : β) * q := by | |
| have hd : (q.den : β) β 0 := by exact_mod_cast q.den_ne_zero | |
| have hn : ((N / q.den : β) : β) * q.den = (N : β) := by | |
| exact_mod_cast Nat.div_mul_cancel h | |
| calc | |
| ((((N / q.den : β) : β€) * q.num : β€) : β) = | |
| ((N / q.den : β) : β) * (q.num : β) := by push_cast; rfl | |
| _ = ((N / q.den : β) : β) * (q.den * q) := by | |
| congr 1 | |
| simpa only [mul_comm] using (div_eq_iff hd).mp q.num_div_den | |
| _ = (N : β) * q := by rw [β mul_assoc, hn] | |
| /-- A locally constant rational section on a compact space has an explicitly constructed common denominator. -/ | |
| theorem locallyConstant_rat_clear_denominators {T : Type} [TopologicalSpace T] [CompactSpace T] | |
| (f : LocallyConstant T β) : | |
| β N : β, 0 < N β§ β g : LocallyConstant T β€, β x, (g x : β) = (N : β) * f x := by | |
| classical | |
| let s := f.range_finite.toFinset | |
| let N := rationalCommonDenominator s | |
| refine β¨N, rationalCommonDenominator_pos s, | |
| LocallyConstant.map (fun q : β => ((N / q.den : β) : β€) * q.num) f, ?_β© | |
| intro x | |
| exact rational_scaled_integer_of_den_dvd (f x) N | |
| (rationalCommonDenominator_dvd s (f x) ((f.range_finite.mem_toFinset).mpr β¨x, rflβ©)) | |
| /-- The denominator is uniform on a compact subset of an arbitrary open domain. -/ | |
| theorem locallyConstant_rat_clear_denominators_on_compact {T : Type} [TopologicalSpace T] | |
| (U : Opens T) (f : LocallyConstant U β) (K : Set T) (hK : IsCompact K) (hKU : K β U) : | |
| β N : β, 0 < N β§ β g : LocallyConstant K β€, | |
| β x : K, (g x : β) = (N : β) * f β¨x.val, hKU x.propertyβ© := by | |
| have : CompactSpace K := isCompact_iff_compactSpace.mp hK | |
| let fK : LocallyConstant K β := | |
| β¨fun x => f β¨x.val, hKU x.propertyβ©, | |
| f.isLocallyConstant.comp_continuous (continuous_subtype_val.subtype_mk _)β© | |
| exact locallyConstant_rat_clear_denominators fK | |
| end | |
| end OAI.AlgebraicGeometry.DivisorClass.Chern.Compact.IntegralScaling | |