Not all complementary decompositions of a module over a semiring make up a direct sum #
This shows that while ℤ≤0
and ℤ≥0
are complementary ℕ
-submodules of ℤ
, which in turn
implies as a collection they are iSupIndep
and that they span all of ℤ
, they
do not form a decomposition into a direct sum.
This file demonstrates why DirectSum.isInternal_submodule_of_iSupIndep_of_iSup_eq_top
must
take Ring R
and not Semiring R
.
The two submodules are complements.
Equations
Instances For
theorem
Counterexample.withSign.not_injective :
¬Function.Injective ⇑(DirectSum.toModule ℕ ℤˣ ℤ fun (i : ℤˣ) => (Counterexample.withSign i).subtype)
But there is no embedding into ℤ
from the direct sum.
And so they do not represent an internal direct sum.