All groups in the first calculation have integral coefficients. Let and . A two-sided tubular neighborhood of identifies as a compact manifold with boundary, with interior . Pushing its boundary inward in a collar neighborhood gives a homotopy equivalence . After thickening across the same collar, excision identifies the relative groups
The orientation of gives an orientation. The Poincare-Lefschetz duality isomorphism therefore gives
Each component of has boundary: a closed component would have open image by the local embedding condition and closed image by compactness, hence would occupy the whole connected sphere, leaving no room for the components with boundary. In particular is nonempty, and .
Apply the long exact sequence in relative homology of , using reduced homology for the absolute terms. Away from the top-dimensional homology of the sphere, it identifies
The exceptional map is
where is the number of components of . Local compatibility of the orientations sends to , the relative fundamental classes of all the components. Its kernel is zero and its cokernel is . Thus the exceptional term has exactly the reduced form required, and all higher groups vanish. We obtain the Alexander duality formula
with negative-index cohomology zero. Ordinary degree zero is recovered by
Both formulas depend on the abstract manifold , so they establish the requested independence up to group isomorphism. They make no claim that the complements themselves are homeomorphic or have isomorphic fundamental groups. The argument also covers , when the diagonal map handles the degree-zero exception. This is the complement homology of a compact codimension-zero submanifold.
For the second calculation write , and . First suppose , with . The rank- normal bundle has a mod-two Thom class, regardless of orientability. A tubular neighborhood, excision and the homological Thom isomorphism theorem identify
The long exact sequence in relative homology becomes the Gysin sequence of an embedding:
The map takes the mod-two fundamental class of to that of : restricting to each normal fiber evaluates the Thom class as . Since is closed and connected, the degree- map
is an isomorphism. This cancels the exceptional top term and gives for when . In all the intervening degrees the sphere groups vanish. In degree zero, the remaining is removed by the augmentation. Consequently the mod-two homology of a submanifold complement is
where negative-index homology of is zero. To recover ordinary homology, add one copy of in degree zero and change nothing in positive degrees. For the first range is empty, so the complement of a connected zero-manifold has the homology of a point. For example, codimension at least two gives , while codimension one gives when .
If , an embedding of the closed connected manifold has image both open and closed in , hence is onto; its complement is empty and all its ordinary homology groups vanish. The positive-codimension formula is not asserted in that case. The standard sphere calculations here assume ; in ambient dimension zero the complement of the embedded connected point in is the other point.