Skip to content

[Merged by Bors] - feat(Analysis/InnerProductSpace/Orthogonal): map_orthogonal - #31728

Closed
jsm28 wants to merge 3 commits into
leanprover-community:masterfrom
jsm28:map_orthogonal
Closed

jsm28 wants to merge 3 commits into
leanprover-community:masterfrom
jsm28:map_orthogonal

Conversation

@jsm28

@jsm28 jsm28 commented Nov 16, 2025

Copy link
Copy Markdown
Contributor

Add a lemma about mapping orthogonal complements under a LinearIsometryEquiv:

lemma map_orthogonal (f : E ≃ₗᵢ[𝕜] F) : Kᗮ.map f = (K.map f)ᗮ := by

Open in Gitpod

Add a lemma about mapping orthogonal complements under a `LinearIsometryEquiv`:

```lean
lemma map_orthogonal (f : E ≃ₗᵢ[𝕜] F) : Kᗮ.map f = (K.map f)ᗮ := by
```
@jsm28 jsm28 added easy < 20s of review time. See the lifecycle page for guidelines. t-analysis Analysis (normed *, calculus) labels Nov 16, 2025
@github-actions

github-actions Bot commented Nov 16, 2025 •

Copy link
Copy Markdown

PR summary 4a5073f89f

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ map_orthogonal

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

Comment on lines +123 to +125
simp only [Submodule.ext_iff, mem_map, mem_orthogonal, forall_exists_index, and_imp,
forall_apply_eq_imp_iff₂, LinearIsometryEquiv.inner_map_eq_flip]
exact fun x ↦ ⟨fun ⟨y, hy⟩ z hz ↦ by simp [← hy.2, hy.1 _ hz], fun h ↦ ⟨_, h, by simp⟩⟩

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.

(I don't know if this is recommended, but you can technically do this in one line:

Suggested change
simp only [Submodule.ext_iff, mem_map, mem_orthogonal, forall_exists_index, and_imp,
forall_apply_eq_imp_iff₂, LinearIsometryEquiv.inner_map_eq_flip]
exact fun x ↦ ⟨fun ⟨y, hy⟩ z hz ↦ by simp [← hy.2, hy.1 _ hz], fun h ↦ ⟨_, h, by simp⟩⟩
aesop (add safe (by simp only [Submodule.ext_iff, mem_orthogonal, f.inner_map_eq_flip]))

)
Probably over-golfed though... so less of a suggestion, and more of an observation I guess

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Impressive use of aesop but I'm inclined to agree that probably over-golfed.

@ocfnash ocfnash left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

bors merge

Comment on lines +123 to +125
simp only [Submodule.ext_iff, mem_map, mem_orthogonal, forall_exists_index, and_imp,
forall_apply_eq_imp_iff₂, LinearIsometryEquiv.inner_map_eq_flip]
exact fun x ↦ ⟨fun ⟨y, hy⟩ z hz ↦ by simp [← hy.2, hy.1 _ hz], fun h ↦ ⟨_, h, by simp⟩⟩

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Impressive use of aesop but I'm inclined to agree that probably over-golfed.

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Nov 17, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Nov 17, 2025
Add a lemma about mapping orthogonal complements under a `LinearIsometryEquiv`:

```lean
lemma map_orthogonal (f : E ≃ₗᵢ[𝕜] F) : Kᗮ.map f = (K.map f)ᗮ := by
```
@mathlib-bors

mathlib-bors Bot commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Analysis/InnerProductSpace/Orthogonal): map_orthogonal [Merged by Bors] - feat(Analysis/InnerProductSpace/Orthogonal): map_orthogonal Nov 17, 2025
@mathlib-bors mathlib-bors Bot closed this Nov 17, 2025
@jsm28
jsm28 deleted the map_orthogonal branch November 17, 2025 16:53
@eric-wieser

Copy link
Copy Markdown
Member

Just noting here that #32021 replaces this lemma with a more general form that doesn't require an equivalence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

easy < 20s of review time. See the lifecycle page for guidelines. ready-to-merge This PR has been sent to bors. t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants