Skip to content

[Merged by Bors] - feat(LinearAlgebra/AffineSpace/Independent): injectivity of spans of images - #31979

Closed
jsm28 wants to merge 6 commits into
leanprover-community:masterfrom
jsm28:injective_affineSpan_image
Closed

jsm28 wants to merge 6 commits into
leanprover-community:masterfrom
jsm28:injective_affineSpan_image

Conversation

@jsm28

@jsm28 jsm28 commented Nov 23, 2025

Copy link
Copy Markdown
Contributor

Add the lemma

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

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).


Open in Gitpod

…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).
@jsm28 jsm28 added the t-algebra Algebra (groups, rings, fields, etc) label Nov 23, 2025
@github-actions

github-actions Bot commented Nov 23, 2025 •

Copy link
Copy Markdown

PR summary 0918ede558

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ AffineIndependent.injective_affineSpan_image
+ AffineIndependent.vectorSpan_image_eq_iff

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Nov 23, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Nov 24, 2025
@mathlib4-dependent-issues-bot

Copy link
Copy Markdown

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Dec 5, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Dec 5, 2025
…images (#31979)

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).
@mathlib-bors

mathlib-bors Bot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(LinearAlgebra/AffineSpace/Independent): injectivity of spans of images [Merged by Bors] - feat(LinearAlgebra/AffineSpace/Independent): injectivity of spans of images Dec 5, 2025
@mathlib-bors mathlib-bors Bot closed this Dec 5, 2025
@jsm28
jsm28 deleted the injective_affineSpan_image branch December 5, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants