This is Theorem 1 in Chapter IV-1 of Weil: Basic Number Theory. See also Corollaries 1-2 in the same chapter.
GH from MO
- 105.4k
- 8
- 293
- 398