Repository navigation
Conversation
Add a lemma about the interaction of `map` and `mk'` for affine subspaces:
```lean
lemma map_mk' (p : P₁) (direction : Submodule k V₁) :
(mk' p direction).map f = mk' (f p) (direction.map f.linear) := by
```
Add a lemma about mapping orthogonal complements under a `LinearIsometryEquiv`: ```lean lemma map_orthogonal (f : E ≃ₗᵢ[𝕜] F) : Kᗮ.map f = (K.map f)ᗮ := by ```
Add further lemmas about tangency, the common theme of which is that they relate in some way to `orthRadius` (the full tangent space rather than only a subspace thereof). In particular, give its `finrank` in a finite-dimensional space and describe tangent spaces that have that `finrank`, and, not limited to a finite-dimensional space, the two tangent spaces that are parallel to a given `orthRadius` space.
Add lemmas, in the case where the dimensions are such that the simplex spans the whole space, exspheres are not merely tangent to the faces but the faces are the full tangent spaces (`orthRadius`).
Co-authored-by: Monica Omar <[email protected]>
… using polars Add further lemmas about `orthRadius` that are of use in setting up and using poles and polars. In particular, `ncard_inter_orthRadius_eq_two_of_dist_lt_radius` is the key part of showing that, in two dimensions, there are exactly two tangents to a circle from a point outside that circle (where the points of tangency lie on the polar of the point from which the two tangents are drawn). --- I think the extra imports are reasonable for this file, but if `Mathlib.Analysis.InnerProductSpace.TwoDim` turns out to be too heavy, it's only used for `FiniteDimensional.of_fact_finrank_eq_two` which could be moved to somewhere much more basic in mathlib.
Define poles and polars for spheres in Euclidean affine spaces, and set up some basic API, including in particular La Hire's theorem (`p₁` lies on the polar of `p₂` if and only if `p₂` lies on the polar of `p₁`). Poles and polars are actually meaningful for any quadric in a projective space over any field, but I think it's reasonable to set up this theory for spheres in the Euclidean context and potentially link it in future to more general projective geometry.
Add lemmas relating tangency to polars, and thereby characterizing `tangentsFrom`: empty for a point inside the sphere, a singleton for a point on the sphere and, in two dimensions, of cardinality two for a point outside the circle.
…subsingleton sets
Add two lemmas about `vectorSpan` of subsingleton sets:
```lean
lemma vectorSpan_of_subsingleton {s : Set P} (h : s.Subsingleton) : vectorSpan k s = ⊥ := by
rcases h.eq_empty_or_singleton with rfl | ⟨p, rfl⟩ <;> simp
```
```lean
lemma vectorSpan_eq_bot_iff_subsingleton {s : Set P} : vectorSpan k s = ⊥ ↔ s.Subsingleton := by
```
…images
Add the lemma
```lean
lemma AffineIndependent.injective_affineSpan_image [Nontrivial k] {p : ι → P}
(ha : AffineIndependent k p) : Injective fun (s : Set ι) ↦ affineSpan k (p '' s) := by
```
which is straightforward given existing lemmas, and the corresponding
`vectorSpan` lemma
```lean
lemma AffineIndependent.vectorSpan_image_eq_iff [Nontrivial k] {p : ι → P}
(ha : AffineIndependent k p) {s₁ s₂ : Set ι} :
vectorSpan k (p '' s₁) = vectorSpan k (p '' s₂) ↔
s₁ = s₂ ∨ s₁.Subsingleton ∧ s₂.Subsingleton := by
```
(feel free to golf).
Add a lemma that a point in a tangent space that's not the point of
tangency lies outside the sphere:
```lean
lemma IsTangentAt.radius_lt_dist_center {s : Sphere P} {as : AffineSubspace ℝ P} {p q : P}
(h : s.IsTangentAt p as) (hq : q ∈ as) (hqp : q ≠ p) : s.radius < dist q s.center := by
```
…mmas Add lemmas relating the faces of a simplex to `tangentSet` and `tangentsFrom` for an exsphere, in particular for a triangle that any two side lines are the `tangentsFrom` their shared vertex to the insphere or any exsphere.
PR summary 54e06b62e5Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
This pull request has conflicts, please merge |
YaelDillies
left a comment
There was a problem hiding this comment.
It is taking me a while to parse these statements. Could they maybe have docstrings?
|
I've added docstrings for the new |
| s.excenterExists_empty.affineSpan_faceOpposite_eq_orthRadius i | ||
|
|
||
| variable {s} in | ||
| /-- The affine span of a face lies in the tangent set of an exsphere. -/ |
There was a problem hiding this comment.
But what's the "tangent set"? Don't you simply mean
| /-- The affine span of a face lies in the tangent set of an exsphere. -/ | |
| /-- The affine span of a face is tangent to all the exspheres. -/ |
?
There was a problem hiding this comment.
It's the set of maximal tangent spaces (for these lemmas, the simplex spans the whole space; we have other existing lemmas about faces being tangent when the simplex might only span a subspace; the point of these lemmas is to give the extra information available when the simplex spans the whole space, leading to describing the two tangents from a vertex as two side lines of a triangle in the two-dimensional case). I'm not sure replicating the content of the docstring of tangentSet is helpful here.
There was a problem hiding this comment.
Oh I see. The name tangentSet doesn't communicate this at all
YaelDillies
left a comment
There was a problem hiding this comment.
Thanks! 🚀
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
|
Thanks for the review Yael! LGTM. bors merge |
…mmas (#31981) Add lemmas relating the faces of a simplex to `tangentSet` and `tangentsFrom` for an exsphere, in particular for a triangle that any two side lines are the `tangentsFrom` their shared vertex to the insphere or any exsphere. Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
|
Pull request successfully merged into master. Build succeeded:
|
tangentSet and tangentsFrom lemmastangentSet and tangentsFrom lemmas
…mmas (leanprover-community#31981) Add lemmas relating the faces of a simplex to `tangentSet` and `tangentsFrom` for an exsphere, in particular for a triangle that any two side lines are the `tangentsFrom` their shared vertex to the insphere or any exsphere. Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Add lemmas relating the faces of a simplex to
tangentSetandtangentsFromfor an exsphere, in particular for a triangle that any two side lines are thetangentsFromtheir shared vertex to the insphere or any exsphere.orthRadiuslemmas #31733tangentsFrom#31893vectorSpanof subsingleton sets #31978radius_lt_dist_center#31980of_fact_finrank_eq_two#32296