Download data/lean/OAI/Geometry/PeriodicTiling/CosetPeriodicity.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.09 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/PeriodicTiling/CosetPeriodicity.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/PeriodicTiling/CosetPeriodicity.lean
-
curl -L -o CosetPeriodicity.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/PeriodicTiling/CosetPeriodicity.lean
3.09 kB
| import OAI.Geometry.PeriodicTiling.TilingBasic | |
| import OAI.Geometry.PeriodicTiling.ScalarPolynomialPeriodicity | |
| import Mathlib.Algebra.BigOperators.Group.Finset.Piecewise | |
| import Mathlib.Algebra.Order.BigOperators.Ring.Finset | |
| import Mathlib.Tactic.Choose | |
| import Mathlib.Tactic.Linarith | |
| import Mathlib.Tactic.Ring | |
| namespace OAI | |
| namespace PeriodicTilingThree | |
| theorem coset_configuration_has_period {m : β} | |
| (P : Fin m β β€ β β) (b : Fin m β β€) (a : Plane β β) | |
| (hzero : β j n, 0 β€ P j n) | |
| (hpair : β i j, i β j β β n r, P i n + P j r β€ 1) | |
| (hsum : β x : Plane, a x = 1 - β j, P j (x.1 + b j * x.2)) | |
| (degree : β) (hdegree : 0 < degree) | |
| (hpoly : β j, (forwardDiff^[degree]) | |
| (fun n => (P j n : AddCircle (1 : β))) = 0) : | |
| β v : Plane, v β 0 β§ Function.Periodic a v := by | |
| classical | |
| by_cases hbounded : β j, β c : β, c < 1 β§ β n, P j n β€ c | |
| Β· have hp : β j, β q : β, 0 < q β§ Function.Periodic (P j) (q : β€) := by | |
| intro j | |
| obtain β¨c, hc, hPcβ© := hbounded j | |
| exact real_polynomial_periodic_of_bounded_lt_one degree hdegree | |
| (P j) c (hzero j) hPc hc (hpoly j) | |
| choose p hp hperiod using hp | |
| let Q : β := β j, p j | |
| have hQ : 0 < Q := Finset.prod_pos fun j _ => hp j | |
| refine β¨(0, (Q : β€)), ?_, ?_β© | |
| Β· intro h | |
| have hz : (Q : β€) = 0 := congrArg Prod.snd h | |
| exact (Nat.cast_ne_zero.mpr (Nat.ne_of_gt hQ)) hz | |
| Β· intro x | |
| rw [hsum, hsum] | |
| apply congrArg (fun y : β => 1 - y) | |
| apply Finset.sum_congr rfl | |
| intro j _hj | |
| have hd : p j β£ Q := Finset.dvd_prod_of_mem p (Finset.mem_univ j) | |
| obtain β¨k, hkβ© := hd | |
| have hperiodQ : Function.Periodic (P j) (b j * (Q : β€)) := by | |
| simpa only [hk, Nat.cast_mul, Int.cast_id, mul_assoc, mul_left_comm, mul_comm] using | |
| (hperiod j).int_mul (b j * (k : β€)) | |
| change P j (x.1 + 0 + b j * (x.2 + (Q : β€))) = | |
| P j (x.1 + b j * x.2) | |
| rw [show x.1 + 0 + b j * (x.2 + (Q : β€)) = | |
| (x.1 + b j * x.2) + b j * (Q : β€) by ring] | |
| exact hperiodQ _ | |
| Β· obtain β¨j, hjβ© := not_forall.mp hbounded | |
| have hother : β i, i β j β β n, P i n = 0 := by | |
| intro i hij n | |
| apply le_antisymm _ (hzero i n) | |
| apply le_of_not_gt | |
| intro hpos | |
| apply hj | |
| refine β¨1 - P i n, by linarith, ?_β© | |
| intro r | |
| have hcross := hpair j i (Ne.symm hij) r n | |
| linarith | |
| have hone : β x : Plane, a x = 1 - P j (x.1 + b j * x.2) := by | |
| intro x | |
| rw [hsum] | |
| apply congrArg (fun y : β => 1 - y) | |
| apply Finset.sum_eq_single j | |
| Β· intro i _hi hij | |
| exact hother i hij _ | |
| Β· intro hj' | |
| exact (hj' (Finset.mem_univ j)).elim | |
| refine β¨(-b j, 1), ?_, ?_β© | |
| Β· intro h | |
| have hz : (1 : β€) = 0 := congrArg Prod.snd h | |
| exact one_ne_zero hz | |
| Β· intro x | |
| rw [hone, hone] | |
| apply congrArg (fun n : β€ => 1 - P j n) | |
| change x.1 + -b j + b j * (x.2 + 1) = x.1 + b j * x.2 | |
| ring | |
| end PeriodicTilingThree | |
| end OAI | |