Skip to content

Commit

Permalink
feat(topology/continuous_function): on a subsingleton X, there is onl…
Browse files Browse the repository at this point in the history
…y one subalgebra R C(X,R) (#7247)




Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
  • Loading branch information
semorrison and semorrison committed Apr 18, 2021
1 parent cab0481 commit 7f541b4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/topology/continuous_function/algebra.lean
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,27 @@ end

end continuous_map

-- TODO[gh-6025]: make this an instance once safe to do so
lemma continuous_map.subsingleton_subalgebra {α : Type*} [topological_space α]
{R : Type*} [comm_semiring R] [topological_space R] [topological_semiring R]
[subsingleton α] : subsingleton (subalgebra R C(α, R)) :=
begin
fsplit,
intros s₁ s₂,
by_cases n : nonempty α,
{ obtain ⟨x⟩ := n,
ext f,
have h : f = algebra_map R C(α, R) (f x),
{ ext x', simp only [mul_one, algebra.id.smul_eq_mul, algebra_map_apply], congr, },
rw h,
simp only [subalgebra.algebra_map_mem], },
{ ext f,
have h : f = 0,
{ ext x', exact false.elim (n ⟨x'⟩), },
subst h,
simp only [subalgebra.zero_mem], },
end

end algebra_structure

section module_over_continuous_functions
Expand Down

0 comments on commit 7f541b4

Please sign in to comment.