Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions PiBaseLean.lean
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ import PiBaseLean.Theorems.T286.Theorem
import PiBaseLean.Theorems.T287.Theorem
import PiBaseLean.Theorems.T288.Theorem
import PiBaseLean.Theorems.T295.Theorem
import PiBaseLean.Theorems.T297.Theorem
import PiBaseLean.Theorems.T3.Theorem
import PiBaseLean.Theorems.T303.Theorem
import PiBaseLean.Theorems.T304.Theorem
Expand Down
35 changes: 35 additions & 0 deletions PiBaseLean/Theorems/T297/Theorem.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module

public import PiBaseLean.Bundled.Basic
public import PiBaseLean.Properties.P57.Bundled
public import PiBaseLean.Properties.P138.Bundled

@[expose] public section

universe u

open Set

namespace PiBase

variable {X : Type u} [TopologicalSpace X]

/-- Theorem T297: P138 ≤ P57

Constant maps are continuous, and distinct points give distinct constant maps, so `X` embeds
into `C(X, X)`. On the empty space there is nothing to prove. -/
theorem instCountableOfCountablyManyContinuousSelfMaps
[h : CountablyManyContinuousSelfMaps X] : Countable X := by
have := h.countable_self_maps
rcases isEmpty_or_nonempty X with _ | hne
· infer_instance
· exact Function.Injective.countable (f := fun x ↦ ContinuousMap.const X x)
fun a b hab ↦ by simpa using DFunLike.congr_fun hab (Classical.arbitrary X)

end PiBase

namespace PiBase.Formal

theorem T297 : P138 ≤ P57 := fun X _ h ↦ @instCountableOfCountablyManyContinuousSelfMaps X _ h

end PiBase.Formal