Skip to content

[Merged by Bors] - feat: tag IsInducing and Is{Open,Closed,}Embedding with fun_prop#29082

Closed
grunweg wants to merge 2 commits intoleanprover-community:masterfrom
grunweg:funprop-embedding
Closed

[Merged by Bors] - feat: tag IsInducing and Is{Open,Closed,}Embedding with fun_prop#29082
grunweg wants to merge 2 commits intoleanprover-community:masterfrom
grunweg:funprop-embedding

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Aug 28, 2025

I have not tested if this is usable in practice; perhaps it is not.


Open in Gitpod

@github-actions github-actions bot added the t-topology Topological spaces, uniform spaces, metric spaces, filters label Aug 28, 2025
@github-actions
Copy link
Copy Markdown

PR summary e1f22205d3

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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

@jcommelin
Copy link
Copy Markdown
Member

maintainer merge? Looks reasonable to me, but I haven't used fun_prop enough to make the call.

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Oct 26, 2025

@jcommelin Did you mean to maintainer merge this? (That would have to go on a separate line; your comment did not have this effect.)

@ocfnash ocfnash changed the title RFC: tag IsInducing and Is{Open,Closed,}Embedding with fun_prop feat: tag IsInducing and Is{Open,Closed,}Embedding with fun_prop Oct 29, 2025
Copy link
Copy Markdown
Contributor

@ocfnash ocfnash left a comment

Choose a reason for hiding this comment

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

Thanks, this is a good idea. Many more lemmas will need fun_prop added for this to be more useful but we have to start somewhere.

bors merge

Comment on lines +480 to 482
@[fun_prop]
protected lemma Topology.IsEmbedding.inclusion (h : s ⊆ t) :
IsEmbedding (inclusion h) := IsEmbedding.subtypeVal.codRestrict _ _
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.

For the sake of due diligence, I tested this one locally and I note that it works, but you do need to specify a discharger:

example {X : Type} [TopologicalSpace X] {s t : Set X} (h : s ⊆ t) :
    Topology.IsEmbedding (Set.inclusion h) := by
  fun_prop (disch := assumption)

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.

A maybe nice feature one could ask for from fun_prop would be that it automatically attempts to discharge using any hypotheses already present in the goal.

mathlib-bors bot pushed a commit that referenced this pull request Oct 29, 2025
#29082)

I have not tested if this is usable in practice; perhaps it is not.
@ghost ghost added the ready-to-merge This PR has been sent to bors. label Oct 29, 2025
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Oct 29, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: tag IsInducing and Is{Open,Closed,}Embedding with fun_prop [Merged by Bors] - feat: tag IsInducing and Is{Open,Closed,}Embedding with fun_prop Oct 29, 2025
@mathlib-bors mathlib-bors bot closed this Oct 29, 2025
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Nov 7, 2025
leanprover-community#29082)

I have not tested if this is usable in practice; perhaps it is not.
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-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants