Download data/lean/OAI/Combinatorics/Crossing/AssembledContinuousDrawing.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.6 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/Crossing/AssembledContinuousDrawing.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Combinatorics/Crossing/AssembledContinuousDrawing.lean
-
curl -L -o AssembledContinuousDrawing.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/Crossing/AssembledContinuousDrawing.lean
3.6 kB
| import OAI.Combinatorics.Crossing.AssembledEdge | |
| namespace OAI | |
| noncomputable section | |
| namespace Zarankiewicz.DrawingPassages | |
| variable {m n : β} {D : FiniteIntersectionDrawing m n} | |
| theorem vertex_spoke_vertex_eq (C : DrawingPassages D) | |
| (v : BipartiteVertex m n β Plane) (hv : β j, squaredLength (v j-D.vertex j) < C.radius^2) | |
| (j k : BipartiteVertex m n) (p : C.PortsAt (C.vertexMark j)) | |
| (hk : v k β Set.range (Path.segment (v j) (C.portPoint p.val))) : k=j := by | |
| by_contra hkj | |
| have hd := C.disks_disjoint _ _ (C.vertexMark_injective.ne (Ne.symm hkj)) | |
| exact Set.disjoint_left.mp hd (C.vertex_spoke_range_in_disk v hv j p hk) (hv k).le | |
| end DrawingPassages | |
| namespace PolygonalExterior | |
| variable {m n : β} {D : FiniteIntersectionDrawing m n} {C : DrawingPassages D} | |
| theorem middlePath_avoids_vertices (E : PolygonalExterior C) (v : BipartiteVertex m n β Plane) | |
| (hv : β j, squaredLength (v j-D.vertex j) < C.radius^2) (e : BipartiteEdge m n) | |
| (j : BipartiteVertex m n) : v j β Set.range (E.middlePath e) := by | |
| intro hx | |
| rcases (E.middlePath_range_iff e (v j)).mp hx with β¨i,hi,β¨t,htβ©β© | β¨p,hp,hxβ© | |
| Β· exact E.avoids_new_vertices v hv i t j ht | |
| Β· exact Set.disjoint_left.mp (C.crossingChord_avoids_vertex_disks p j) hx (hv j).le | |
| theorem assembledEdge_vertex_eq (E : PolygonalExterior C) (v : BipartiteVertex m n β Plane) | |
| (hv : β j, squaredLength (v j-D.vertex j) < C.radius^2) (e : BipartiteEdge m n) | |
| (j : BipartiteVertex m n) (hj : v j β Set.range (E.assembledEdge v e)) : | |
| j=.inl e.1 β¨ j=.inr e.2 := by | |
| rw [assembledEdge,Path.trans_range,Path.trans_range] at hj | |
| rcases hj with (hj | hj) | hj | |
| Β· exact Or.inl (C.vertex_spoke_vertex_eq v hv _ j (C.startPortAt e) hj) | |
| Β· exact False.elim (E.middlePath_avoids_vertices v hv e j hj) | |
| Β· rw [endSpoke_range] at hj | |
| exact Or.inr (C.vertex_spoke_vertex_eq v hv _ j (C.endPortAt e) hj) | |
| theorem assembledEdge_interior_avoids_vertices (E : PolygonalExterior C) | |
| (v : BipartiteVertex m n β Plane) (hv : β j, squaredLength (v j-D.vertex j) < C.radius^2) | |
| (e : BipartiteEdge m n) (t : unitInterval) (ht : t β Set.Ioo (0 : unitInterval) 1) | |
| (j : BipartiteVertex m n) : E.assembledEdge v e t β v j := by | |
| intro he | |
| rcases E.assembledEdge_vertex_eq v hv e j β¨t,heβ© with rfl | rfl | |
| Β· have hh := E.assembledEdge_injective v hv e (he.trans (E.assembledEdge v e).source.symm) | |
| exact ht.1.ne hh.symm | |
| Β· have hh := E.assembledEdge_injective v hv e (he.trans (E.assembledEdge v e).target.symm) | |
| exact ht.2.ne hh | |
| def assembledDrawing (E : PolygonalExterior C) (v : BipartiteVertex m n β Plane) | |
| (hvinj : Function.Injective v) (hv : β j, squaredLength (v j-D.vertex j) < C.radius^2) : | |
| ContinuousDrawing m n where | |
| vertex := v | |
| vertex_injective := hvinj | |
| edge := E.assembledEdge v | |
| edge_injective := E.assembledEdge_injective v hv | |
| interior_avoids_vertices := E.assembledEdge_interior_avoids_vertices v hv | |
| theorem exists_assembledDrawing (D : FiniteIntersectionDrawing m n) : | |
| β (C : DrawingPassages D) (E : PolygonalExterior C) | |
| (v : BipartiteVertex m n β Plane) (hvinj : Function.Injective v) | |
| (hv : β j, squaredLength (v j-D.vertex j) < C.radius^2), | |
| β e, Function.Injective ((E.assembledDrawing v hvinj hv).edge e) := by | |
| obtain β¨Cβ© := nonempty_drawingPassages D | |
| obtain β¨Eβ© := nonempty_polygonalExterior C | |
| obtain β¨v,hvinj,hv,hne,hdetβ© := C.exists_drawing_vertex_placement | |
| exact β¨C,E,v,hvinj,hv,E.assembledEdge_injective v hvβ© | |
| end PolygonalExterior | |
| end Zarankiewicz | |
| end | |
| end OAI | |