Download data/lean/OAI/Probability/FirstPassage/CrossingChain.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.71 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FirstPassage/CrossingChain.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FirstPassage/CrossingChain.lean
-
curl -L -o CrossingChain.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FirstPassage/CrossingChain.lean
3.71 kB
| import OAI.Probability.FirstPassage.ShapeDeficit | |
| import OAI.Probability.FirstPassage.HighDensityOriented | |
| namespace OAI | |
| namespace PlanarFPP | |
| open Filter | |
| open scoped Topology | |
| def crossingChain (initialPath : List Step) (trial connector : β β List Step) : β β List Step | |
| | 0 => initialPath ++ trial 0 | |
| | n+1 => crossingChain initialPath trial connector n ++ (connector n ++ trial (n+1)) | |
| theorem crossingChain_endpoint (initialPath : List Step) (trial connector : β β List Step) | |
| (a z : β β Vertex) (hp : displacement initialPath = a 0) | |
| (ht : β n, a n+displacement (trial n)=z n) | |
| (hc : β n, z n+displacement (connector n)=a (n+1)) (n : β) : | |
| displacement (crossingChain initialPath trial connector n)=z n := by | |
| induction n with | |
| | zero => simpa only [crossingChain,displacement_append,hp] using ht 0 | |
| | succ n ih => | |
| simp only [crossingChain,displacement_append,ih,β add_assoc,hc,ht] | |
| theorem crossingChain_defect (w : Edge β β) (b m a e : β) | |
| (initialPath : List Step) (trial connector : β β List Step) (p z : β β Vertex) | |
| (hp : displacement initialPath=p 0) | |
| (ht : β n, p n+displacement (trial n)=z n) | |
| (hc : β n, z n+displacement (connector n)=p (n+1)) | |
| (htrial : β n, defect w b m a (p n) (trial n) β€ -e) | |
| (hconnector : β n, defect w b m a (z n) (connector n) β€ e/2) (n : β) : | |
| defect w b m a 0 (crossingChain initialPath trial connector n) β€ | |
| defect w b m a 0 initialPath-((n : β)+1)*e+(n : β)*e/2 := by | |
| induction n with | |
| | zero => | |
| simp only [crossingChain,defect_append,zero_add,hp] | |
| have hh := htrial 0 | |
| norm_num | |
| linarith | |
| | succ n ih => | |
| rw [crossingChain,defect_append,crossingChain_endpoint initialPath trial connector p z hp ht hc, | |
| zero_add,defect_append,hc] | |
| have h1 := htrial (n+1) | |
| have h2 := hconnector n | |
| push_cast | |
| linarith | |
| theorem oriented_path_coordinates (v : β β Vertex) (h0 : v 0=0) | |
| (hs : β n, v (n+1)=v n+(1,0) β¨ v (n+1)=v n+(0,1)) (n : β) : | |
| (v n).1+(v n).2=(n : β€) β§ 0 β€ (v n).1 β§ 0 β€ (v n).2 β§ (v n).2 β€ n := by | |
| induction n with | |
| | zero => simp [h0] | |
| | succ n ih => | |
| rcases hs n with he | he <;> rw [he] <;> simp only [Prod.fst_add,Prod.snd_add] <;> | |
| push_cast <;> omega | |
| theorem UniformShape.no_crossing_chain (w : Edge β β) (hw : β e, 0 β€ w e) | |
| (ΞΌ : Plane β β) (hu : UniformShape w ΞΌ) (b m a e B : β) (he : 0 < e) (hB : 0 < B) | |
| (hf : β v, m*v 0+a*(v 1-b*v 0) β€ ΞΌ v) | |
| (initialPath : List Step) (trial connector : β β List Step) (p z : β β Vertex) | |
| (hp : displacement initialPath=p 0) | |
| (ht : β n, p n+displacement (trial n)=z n) | |
| (hc : β n, z n+displacement (connector n)=p (n+1)) | |
| (htrial : β n, defect w b m a (p n) (trial n) β€ -e) | |
| (hconnector : β n, defect w b m a (z n) (connector n) β€ e/2) | |
| (hescape : Tendsto (fun n => βlatticeEmbed (z n)β) atTop atTop) | |
| (hbound : β n, βlatticeEmbed (z n)β β€ B*((n : β)+1)) : False := by | |
| apply hu.no_linear_deficit w hw ΞΌ (fun v => m*v 0+a*(v 1-b*v 0)) hf z | |
| (crossingChain initialPath trial connector) (defect w b m a 0 initialPath) (e/2) B | |
| (by linarith) hB hescape hbound | |
| (crossingChain_endpoint initialPath trial connector p z hp ht hc) | |
| intro n | |
| have hh := crossingChain_defect w b m a e initialPath trial connector p z hp ht hc htrial hconnector n | |
| rw [defect,crossingChain_endpoint initialPath trial connector p z hp ht hc] at hh | |
| simp only [support,transverse] at hh | |
| change pathCost w 0 (crossingChain initialPath trial connector n) β€ | |
| m*(z n).1+a*((z n).2-b*(z n).1)+defect w b m a 0 initialPath-e/2*n | |
| linarith | |
| end PlanarFPP | |
| end OAI | |