forked from stacks/stacks-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.tex
3749 lines (3249 loc) · 138 KB
/
examples.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\input{preamble}
% OK, start here.
%
\begin{document}
\title{Examples}
\maketitle
\phantomsection
\label{section-phantom}
\tableofcontents
\section{Introduction}
\label{section-introduction}
\noindent
This chapter will contain examples which illuminate the theory.
\section{A nonintegral connected scheme whose local rings are domains}
\label{section-connected-locally-integral-not-integral}
\noindent
We give an example of an affine scheme $X = \Spec(A)$ which is
connected, all of whose local rings are domains, but which is not integral.
Connectedness of $X$ means $A$ has no nontrivial idempotents, see
Algebra, Lemma \ref{algebra-lemma-disjoint-decomposition}.
The local rings of $X$ are domains if, whenever $fg = 0$ in $A$, every
point of $X$ has a neighborhood where either $f$ or $g$ vanishes.
As long as $A$ is not a domain, then $X$ is not integral
(Properties, Definition \ref{properties-definition-integral}).
\medskip\noindent
Roughly speaking, the construction is as follows: let $X_0$ be the cross
(the union of coordinate axes) on the affine plane. Then let $X_1$ be
the (reduced) full preimage of $X_0$ on the blow-up of the plane ($X_1$
has three rational components forming a chain). Then blow up the
resulting surface at the two singularities of $X_1$, and let $X_2$ be
the reduced preimage of $X_1$ (which has five rational components), etc.
Take $X$ to be the inverse limit. The only problem with this construction
is that blow-ups glue in a projective line, so $X_1$ is not affine. Let us
correct this by glueing in an affine line instead (so our scheme will be an
open subset in what was described above).
\medskip\noindent
Here is a completely algebraic construction: For every $k \ge 0$, let $A_k$
be the following ring: its elements are collections of
polynomials $p_i \in \mathbf{C}[x]$ where $i = 0, \dots, 2^k$ such that
$p_i(1) = p_{i + 1}(0)$. Set $X_k = \Spec(A_k)$. Observe that $X_k$ is
a union of $2^k + 1$ affine lines that meet transversally in a chain.
Define a ring homomorphism $A_k \to A_{k + 1}$ by
$$
(p_0, \dots, p_{2^k})
\longmapsto
(p_0, p_0(1), p_1, p_1(1), \dots, p_{2^k}),
$$
in other words, every other polynomial is constant. This identifies
$A_k$ with a subring of $A_{k + 1}$. Let $A$ be the direct limit of $A_k$
(basically, their union). Set $X = \Spec(A)$. For every $k$, we have
a natural embedding $A_k \to A$, that is, a map $X\to X_k$.
Each $A_k$ is connected but not integral; this implies that $A$ is
connected but not integral. It remains to show that the local rings of
$A$ are domains.
\medskip\noindent
Take $f, g \in A$ with $fg = 0$ and $x \in X$. Let us construct a
neighborhood of $x$ on which one of $f$ and $g$ vanishes. Choose $k$
such that $f, g \in A_{k - 1}$ (note the $k - 1$ index).
Let $y$ be the image of $x$ in $X_k$. It suffices to prove that $y$ has
a neighborhood on which either $f$ or $g$ viewed as sections of
$\mathcal{O}_{X_k}$ vanishes.
If $y$ is a smooth point of $X_k$, that is, it lies on only one of the
$2^k + 1$ lines, this is obvious. We can therefore assume that $y$ is one
of the $2^k$ singular points, so two components of $X_k$ pass through
$y$. However, on one of these two components (the one with odd index),
both $f$ and $g$ are constant, since they are pullbacks of functions on
$X_{k - 1}$. Since $fg = 0$ everywhere, either $f$ or $g$ (say, $f$)
vanishes on the other component.
This implies that $f$ vanishes on both components, as required.
\section{Noncomplete completion}
\label{section-noncomplete-completion}
\noindent
Let $R$ be a ring and let $\mathfrak m$ be a maximal ideal. Consider the
completion
$$
R^\wedge = \lim R/\mathfrak m^n.
$$
Note that $R^\wedge$ is a local ring with maximal ideal
$\mathfrak m' = \text{Ker}(R^\wedge \to R/\mathfrak m)$.
Namely, if $x = (x_n) \in R^\wedge$ is not in $\mathfrak m'$, then
$y = (x_n^{-1}) \in R^\wedge$ satisfies $xy = 1$, whence $R^\wedge$ is local by
Algebra, Lemma \ref{algebra-lemma-characterize-local-ring}. Now it is
always true that $R^\wedge$ complete in its limit topology (see the
discussion in
More on Algebra, Section \ref{more-algebra-section-topological-ring}).
But beyond that, we have the following questions:
\begin{enumerate}
\item Is it true that $\mathfrak m R^\wedge = \mathfrak m'$?
\item Is $R^\wedge$ viewed as an $R^\wedge$-module $\mathfrak m'$-adically
complete?
\item Is $R^\wedge$ viewed as an $R$-module $\mathfrak m$-adically complete?
\end{enumerate}
It turns out that of these questions all have a negative answer.
The example below was taken from an unpublished note of
Bart de Smit and Hendrik Lenstra. See also
\cite[Exercise III.2.12]{Bourbaki-CA} and
\cite[Example 1.8]{Yekutieli}
\medskip\noindent
Let $k$ be a field, $R = k[x_1, x_2, x_3, \ldots]$, and
$\mathfrak m = (x_1, x_2, x_3, \ldots)$.
We will think of an element $f$ of $R^\wedge$ as a (possibly) infinite sum
$$
f = \sum a_I x^I
$$
(using multi-index notation) such that for each $d \geq 0$ there
are only finitely many nonzero $a_I$ for $|I| = d$. The maximal
ideal $\mathfrak m' \subset R^\wedge$ is the collection of $f$ with
zero constant term. In particular, the element
$$
f = x_1 + x_2^2 + x_3^3 + \ldots
$$
is in $\mathfrak m'$ but not in $\mathfrak m R^\wedge$ which
shows that (1) is false in this example. Note that we do have
$\mathfrak m R^\wedge \subset \mathfrak m'$. Hence, $R^\wedge$
is not $\mathfrak m$-adically complete as an $R$-module, then it is also not
$\mathfrak m'$-adically complete. To show that $R^\wedge$ is not
$\mathfrak m$-adically complete (as an $R$-module)
it suffices to show that $K_2 = \text{Ker}(R^\wedge \to R/\mathfrak m^2)$
is not equal to $\mathfrak m^2R^\wedge$, see
Algebra, Lemma \ref{algebra-lemma-hathat}.
Note that an element of $\mathfrak m^2R^\wedge \subset (\mathfrak m')^2$
can be written as a finite sum
\begin{equation}
\label{equation-sum}
\sum\nolimits_{i = 1, \ldots, t} f_i g_i
\end{equation}
with $f_i, g_i \in R^\wedge$ having vanishing constant terms.
To get an example we are going to choose an $z \in K_2$
of the form
$$
z = z_1 + z_2 + z_3 + \ldots
$$
with the following properties
\begin{enumerate}
\item there exist sequences $1 < d_1 < d_2 < d_3 < \ldots $ and
$0 < n_1 < n_2 < n_3 < \ldots$ such that
$z_i \in k[x_{n_i}, x_{n_i + 1}, \ldots, x_{n_{i + 1} - 1}]$
homogeneous of degree $d_i$, and
\item in the ring $k[[x_{n_i}, x_{n_i + 1}, \ldots, x_{n_{i + 1} - 1}]]$
the element $z_i$ cannot be written as a sum (\ref{equation-sum})
with $t \leq i$.
\end{enumerate}
Clearly this implies that $z$ is not in $(\mathfrak m')^2$
because the image of the relation (\ref{equation-sum}) in the
ring $k[[x_{n_i}, x_{n_i + 1}, \ldots, x_{n_{i + 1} - 1}]]$
for $i$ large enough would produce a contradiction. Hence it suffices
to prove that for all $t > 0$ there exists a $d \gg 0$ and an integer
$n$ such that we can find an homogeneous element
$z \in k[x_1, \ldots, x_n]$ of degree $d$ which cannot be written as
a sum (\ref{equation-sum}) for the given $t$ in $k[[x_1, \ldots, x_n]]$.
Take $n > 2t$ and any $d > 1$ prime to the characteristic of $p$ and
set $z = \sum_{i = 1, \ldots, n} x_i^d$. Then the vanishing locus
of the ideal
$$
(\frac{\partial z}{\partial x_1}, \ldots, \frac{\partial z}{\partial x_n})
=
(dx_1^{d - 1}, \ldots, dx_n^{d - 1})
$$
consists of one point. On the other hand,
$$
\frac{\partial ( \sum\nolimits_{i = 1, \ldots, t} f_i g_i ) }{\partial x_j}
\in (f_1, \ldots, f_t, g_1, \ldots, g_t)
$$
by the Leibniz rule and hence the vanishing locus of these derivatives
contains at least
$$
V(f_1, \ldots, f_t, g_1, \ldots, g_t) \subset
\Spec(k[[x_1, \ldots, x_n]]).
$$
Hence this is a contradiction as the dimension of
$V(f_1, \ldots, f_t, g_1, \ldots, g_t)$ is at least $n - 2t \geq 1$.
\begin{lemma}
\label{lemma-noncomplete-completion}
There exists a local ring $R$ and a maximal ideal $\mathfrak m$ such that
the completion $R^\wedge$ of $R$ with respect to $\mathfrak m$ has the
following properties
\begin{enumerate}
\item $R^\wedge$ is local, but its maximal ideal is not equal to
$\mathfrak m R^\wedge$,
\item $R^\wedge$ is not a complete local ring, and
\item $R^\wedge$ is not $\mathfrak m$-adically complete as an $R$-module.
\end{enumerate}
\end{lemma}
\begin{proof}
This follows from the discussion above as (with $R = k[x_1, x_2, x_3, \ldots]$)
the completion of the localization $R_{\mathfrak m}$ is equal to the
completion of $R$.
\end{proof}
\section{Noncomplete quotient}
\label{section-noncomplete-quotient}
\noindent
Let $k$ be a field. Let
$$
R = k[t, z_1, z_2, z_3, \ldots, w_1, w_2, w_3, \ldots, x]/
(z_it - x^iw_i, z_i w_j)
$$
Note that in particular $z_iz_jt = 0$ in this ring. Any element $f$ of $R$
can be uniquely written as a finite sum
$$
f = \sum\nolimits_{i = 0, \ldots, d} f_i x^i
$$
where each $f_i \in k[t, z_i, w_j]$ has no terms involving the products
$z_it$ or $z_iw_j$. Moreover, if $f$ is written in this way, then
$f \in (x^n)$ if and only if $f_i = 0$ for $i < n$.
So $x$ is a nonzerodivisor and $\bigcap (x^n) = 0$.
Let $R^\wedge$ be the completion of $R$ with respect to the ideal $(x)$.
Note that $R^\wedge$ is $(x)$-adically complete, see
Algebra, Lemma \ref{algebra-lemma-hathat-finitely-generated}.
By the above we see that an element of $R^\wedge$ can be uniquely written
as an infinite sum
$$
f = \sum\nolimits_{i = 0}^\infty f_i x^i
$$
where each $f_i \in k[t, z_i, w_j]$ has no terms involving the products
$z_it$ or $z_iw_j$. Consider the element
$$
f = \sum\nolimits_{i = 1}^\infty x^{i - 1} w_i =
xw_1 + x^2w_2 + x^3w_3 + \ldots
$$
i.e., we have $f_n = w_n$. Note that $f \in (t , x^n)$ for every $n$
because $x^mw_m \in (t)$ for all $m$.
We claim that $f \not \in (t)$. To prove this assume that
$tg = f$ where $g = \sum g_lx^l$ in canonical form as above.
Since $tz_iz_j = 0$ we may as well assume that none of the $g_l$ have
terms involving the products $z_iz_j$. Examining the process to
get $tg$ in canonical form we see the following:
Given any term $c m$ of $g_l$ where $c \in k$ and $m$ is a
monomial in $t, z_i, w_j$ and we make the following replacement
\begin{enumerate}
\item if the monomial $m$ does not involve any $z_i$, then $ctm$ is
a term of $f_l$, and
\item if the monomial $m$ does involve a $z_i$ then it is equal to
$m = z_i$ and we see that $cw_i$ is term of $f_{l + i}$.
\end{enumerate}
Since $g_0$ is a polynomial only finitely many of the variables $z_i$
occur in it. Pick $n$ such that $z_n$ does not occur in $g_0$.
Then the rules above show that $w_n$ does not occur in $f_n$ which is
a contradiction. It follows that $R^\wedge/(t)$ is not complete, see
Algebra, Lemma \ref{algebra-lemma-quotient-complete}.
\begin{lemma}
\label{lemma-noncomplete-quotient}
There exists a ring $R$ complete with respect to a principal ideal
$I$ and a principal ideal $J$ such that $R/J$ is not $I$-adically
complete.
\end{lemma}
\begin{proof}
See discussion above.
\end{proof}
\section{Completion is not exact}
\label{section-completion-not-exact}
\noindent
A quick example is the following. Suppose that $R = k[t]$. Let
$P = K = \bigoplus_{n \in \mathbf{N}} R$ and
$M = \bigoplus_{n \in \mathbf{N}} R/(t^n)$. Then there is a short exact
sequence $0 \to K \to P \to M \to 0$ where the first map is given by
multiplication by $t^n$ on the $n$th summand. We claim that
$0 \to K^\wedge \to P^\wedge \to M^\wedge \to 0$ is not exact in the middle.
Namely, $\xi = (t^2, t^3, t^4, \ldots) \in P^\wedge$ maps to zero in
$M^\wedge$ but is not in the image of $K^\wedge \to P^\wedge$, because
it would be the image of $(t, t, t, \ldots)$ which is not an element of
$K^\wedge$.
\medskip\noindent
A ``smaller'' example is the following. In the situation of
Lemma \ref{lemma-noncomplete-quotient}
the short exact sequence $0 \to J \to R \to R/J \to 0$ does not remain
exact after completion. Namely, if $f \in J$ is a generator, then
$f : R \to J$ is surjective, hence $R \to J^\wedge$ is surjective, hence
the image of $J^\wedge \to R$ is $(f) = J$ but the fact that
$R/J$ is noncomplete means that the kernel of the surjection
$R \to (R/J)^\wedge$ is strictly bigger than $J$, see
Algebra, Lemmas \ref{algebra-lemma-completion-generalities} and
\ref{algebra-lemma-quotient-complete}.
By the same token the sequence
$R \to R \to R/(f) \to 0$ does not remain exact on completion.
\begin{lemma}
\label{lemma-completion-not-exact}
Completion is not an exact functor in general; it is not even
right exact in general. This holds even when $I$ is finitely
generated on the category of finitely presented modules.
\end{lemma}
\begin{proof}
See discussion above.
\end{proof}
\section{The category of complete modules is not abelian}
\label{section-non-abelian}
\noindent
Let $R$ be a ring and let $I \subset R$ be a finitely generated ideal.
Consider the category $\mathcal{A}$ of $I$-adically complete
$R$-modules, see
Algebra, Definition \ref{algebra-definition-complete}.
Let $\varphi : M \to N$ be a morphism of $\mathcal{A}$.
The cokernel of $\varphi$ in $\mathcal{A}$ is the completion
$(\text{Coker}(\varphi))^\wedge$ of the usual cokernel
(as $I$ is finitely generated this completion is complete, see
Algebra, Lemma \ref{algebra-lemma-hathat-finitely-generated}).
Let $K = \text{Ker}(\varphi)$. We claim that $K$ is complete and
hence is the kernel of $\varphi$ in $\mathcal{A}$. Namely, let
$K^\wedge$ be the completion. As $M$ is complete we obtain a factorization
$$
K \to K^\wedge \to M \xrightarrow{\varphi} N
$$
Since $\varphi$ is continuous for the $I$-adic topology, $K \to K^\wedge$
has dense image, and $K = \text{Ker}(\varphi)$ we conclude that $K^\wedge$
maps into $K$. Thus $K^\wedge = K \oplus C$ and $K$ is a direct sum
of a complete module, hence complete.
\medskip\noindent
We will give an example that shows that $\text{Im} \not = \text{Coim}$
in general. We take $R = \mathbf{Z}_p = \lim_n \mathbf{Z}/p^n\mathbf{Z}$
to be the ring of $p$-adic integers and we take $I = (p)$.
Consider the map
$$
\text{diag}(1, p, p^2, \ldots) :
\left(\bigoplus\nolimits_{n \geq 1} \mathbf{Z}_p\right)^\wedge
\longrightarrow
\prod\nolimits_{n \geq 1} \mathbf{Z}_p
$$
where the left hand side is the $p$-adic completion of the direct sum.
Hence an element of the left hand side is a vector $(x_1, x_2, x_3, \ldots)$
with $x_i \in \mathbf{Z}_p$ with $p$-adic valuation $v_p(x_i) \to \infty$ as
$i \to \infty$. This maps to $(x_1, px_2, p^2x_3, \ldots)$. Hence we see
that $(1, p, p^2, \ldots)$ is in the closure of the image but not in
the image. By our description of kernels and cokernels above it is
clear that $\text{Im} \not = \text{Coim}$ for this map.
\begin{lemma}
\label{lemma-complete-modules-not-abelian}
Let $R$ be a ring and let $I \subset R$ be a finitely generated ideal.
The category of $I$-adically complete $R$-modules has kernels and
cokernels but is not abelian in general.
\end{lemma}
\begin{proof}
See above.
\end{proof}
\section{Regular sequences and base change}
\label{section-regular-base-change}
\noindent
We are going to construct a ring $R$ with a regular sequence
$(x, y, z)$ such that there exists a nonzero element $\delta \in R/zR$
with $x\delta = y\delta = 0$.
\medskip\noindent
To construct our example we first
construct a peculiar module $E$ over the ring $k[x, y, z]$
where $k$ is any field. Namely, $E$ will be a push-out as
in the following diagram
$$
\xymatrix{
\frac{xk[x, y, z, y^{-1}]}{xyk[x, y, z]} \ar[r] \ar[d]^{z/x} &
\frac{k[x, y, z, x^{-1}, y^{-1}]}{yk[x, y, z, x^{-1}]} \ar[r] \ar[d] &
\frac{k[x, y, z, x^{-1}, y^{-1}]}{yk[x, y, z, x^{-1}] + xk[x, y, z, y^{-1}]}
\ar[d] \\
\frac{k[x, y, z, y^{-1}]}{yzk[x, y, z]} \ar[r] &
E \ar[r] &
\frac{k[x, y, z, x^{-1}, y^{-1}]}{yk[x, y, z, x^{-1}] + xk[x, y, z, y^{-1}]}
}
$$
where the rows are short exact sequences (we dropped the outer zeros due
to typesetting problems). Another way to describe $E$ is as
$$
E = \{(f, g) \mid f \in k[x, y, z, x^{-1}, y^{-1}],
g \in k[x, y, z, y^{-1}] \}/\sim
$$
where $(f, g) \sim (f', g')$ if and only if there exists a
$h \in k[x, y, z, y^{-1}]$ such that
$$
f = f' + xh \bmod yk[x, y, z, x^{-1}], \quad
g = g' - zh \bmod yzk[x, y, z]
$$
We claim: (a) $x : E \to E$ is injective, (b)
$y : E/xE \to E/xE$ is injective, (c) $E/(x, y)E = 0$, (d) there
exists a nonzero element $\delta \in E/zE$ such that
$x\delta = y\delta = 0$.
\medskip\noindent
To prove (a) suppose that $(f, g)$ is a pair that gives rise to an
element of $E$ and that $(xf, xg) \sim 0$. Then there exists a
$h \in k[x, y, z, y^{-1}]$ such that $xf + xh \in yk[x, y, z, x^{-1}]$
and $xg - zh \in yzk[x, y, z]$. We may assume that
$h = \sum a_{i, j, k}x^iy^jz^k$ is a sum of monomials where only
$j \leq 0$ occurs. Then $xg - zh \in yzk[x, y, z]$ implies that
only $i > 0$ occurs, i.e., $h = xh'$ for some $h' \in k[x, y, z, y^{-1}]$.
Then $(f, g) \sim (f + xh', g - zh')$ and we see that we may assume
that $g = 0$ and $h = 0$. In this case $xf \in yk[x, y, z, x^{-1}]$
implies $f \in yk[x, y, z, x^{-1}]$ and we see that $(f, g) \sim 0$.
Thus $x : E \to E$ is injective.
\medskip\noindent
Since multiplication by $x$ is an isomorphism on
$\frac{k[x, y, z, x^{-1}, y^{-1}]}{yk[x, y, z, x^{-1}]}$ we see that
$E/xE$ is isomorphic to
$$
\frac{k[x, y, z, y^{-1}]}{
yzk[x, y, z] + xk[x, y, z, y^{-1}] + zk[x, y, z, y^{-1}]}
=
\frac{k[x, y, z, y^{-1}]}{xk[x, y, z, y^{-1}] + zk[x, y, z, y^{-1}]}
$$
and hence multiplication by $y$ is an isomorphism on $E/xE$. This clearly
implies (b) and (c).
\medskip\noindent
Let $e \in E$ be the equivalence class of $(1, 0)$.
Suppose that $e \in zE$. Then there exist $f \in k[x, y, z, x^{-1}, y^{-1}]$,
$g \in k[x, y, z, y^{-1}]$, and $h \in k[x, y, z, y^{-1}]$ such that
$$
1 + zf + xh \in yk[x, y, z, x^{-1}], \quad
0 + zg - zh \in yzk[x, y, z].
$$
This is impossible: the monomial $1$ cannot occur in
$zf$, nor in $xh$. On the other hand, we have $ye = 0$ and
$xe = (x, 0) \sim (0, -z) = z(0, -1)$. Hence setting $\delta$
equal to the congruence class of $e$ in $E/zE$ we obtain (d).
\begin{lemma}
\label{lemma-strange-regular-sequence}
There exists a local ring $R$ and a regular sequence $x, y, z$
(in the maximal ideal) such that there exists a nonzero element
$\delta \in R/zR$ with $x\delta = y\delta = 0$.
\end{lemma}
\begin{proof}
Let $R = k[x, y, z] \oplus E$ where $E$ is the module above considered
as a square zero ideal. Then it is clear that $x, y, z$ is a regular
sequence in $R$, and that the element $\delta \in E/zE \subset R/zR$
gives an element with the desired properties. To get a local example
we may localize $R$ at the maximal ideal $\mathfrak m = (x, y, z, E)$.
The sequence $x, y, z$ remains a regular sequence (as localization is
exact), and the element $\delta$ remains nonzero as it is supported
at $\mathfrak m$.
\end{proof}
\begin{lemma}
\label{lemma-base-change-regular-sequence}
There exists a local homomorphism of local rings $A \to B$
and a regular sequence $x, y$ in the maximal ideal of $B$ such that
$B/(x, y)$ is flat over $A$, but such that the images
$\overline{x}, \overline{y}$ of $x, y$ in $B/\mathfrak m_AB$ do not
form a regular sequence, nor even a Koszul-regular sequence.
\end{lemma}
\begin{proof}
Set $A = k[z]_{(z)}$ and let $B = (k[x, y, z] \oplus E)_{(x, y, z, E)}$.
Since $x, y, z$ is a regular sequence in $B$, see proof of
Lemma \ref{lemma-strange-regular-sequence},
we see that $x, y$ is a regular sequence in $B$ and that
$B/(x, y)$ is a torsion free $A$-module, hence flat.
On the other hand, there exists a nonzero element
$\delta \in B/\mathfrak m_AB = B/zB$ which is annihilated
by $\overline{x}, \overline{y}$. Hence
$H_2(K_\bullet(B/\mathfrak m_AB, \overline{x}, \overline{y})) \not = 0$.
Thus $\overline{x}, \overline{y}$ is not Koszul-regular, in particular
it is not a regular sequence, see
More on Algebra, Lemma \ref{more-algebra-lemma-regular-koszul-regular}.
\end{proof}
\section{A Noetherian ring of infinite dimension}
\label{section-Noetherian-infinite-dimension}
\noindent
A Noetherian local ring has finite dimension as we saw in
Algebra, Proposition \ref{algebra-proposition-dimension}.
But there exist Noetherian rings of infinite dimension.
See \cite[Appendix, Example 1]{Nagata}.
\medskip\noindent
Namely, let $k$ be a field, and consider the ring
$$
R = k[x_1, x_2, x_3, \ldots ].
$$
Let $\mathfrak p_i = (x_{2^{i - 1}}, x_{2^{i - 1} + 1}, \ldots, x_{2^i - 1})$
for $i = 1, 2, \ldots$ which are prime ideals of $R$. Let $S$
be the multiplicative subset
$$
S = \bigcap\nolimits_{i \geq 1} (R \setminus \mathfrak p_i).
$$
Consider the ring $A = S^{-1}R$.
We claim that
\begin{enumerate}
\item The maximal ideals of the ring $A$ are the ideals
$\mathfrak m_i = \mathfrak p_iA$.
\item We have $A_{\mathfrak m_i} = R_{\mathfrak p_i}$ which is
a Noetherian local ring of dimension $2^i$.
\item The ring $A$ is Noetherian.
\end{enumerate}
Hence it is clear that this is the example we are looking for.
Details omitted.
\section{Local rings with nonreduced completion}
\label{section-local-completion-nonreduced}
\noindent
In Algebra, Example \ref{algebra-example-bad-dvr-char-p} we gave an example
of a characteristic $p$ Noetherian local domain $R$ of dimension $1$
whose completion is nonreduced. In this section we present the example
of \cite[Proposition 3.1]{Ferrand-Raynaud} which gives a similar
ring in characteristic zero.
\medskip\noindent
Let $\mathbf{C}\{x\}$ be the ring of convergent power series over
the field $\mathbf{C}$ of complex numbers. The ring of all power series
$\mathbf{C}[[x]]$ is its completion. Let $K = \mathbf{C}\{x\}[1/x] = f.f.(B)$
be the field of convergent Laurent series. The $K$-module
$\Omega_{K/\mathbf{C}}$ of algebraic differentials
of $K$ over $\mathbf{C}$ is an infinite dimensional $K$-vector space
(proof omitted). We may choose $f_n \in x\mathbf{C}\{x\}$,
$n \geq 1$ such that
$
\text{d}x, \text{d}f_1, \text{d}f_2, \ldots
$
are part of a basis of $\Omega_{K/\mathbf{C}}$. Thus we can
find a $\mathbf{C}$-derivation
$$
D : \mathbf{C}\{x\} \longrightarrow \mathbf{C}((x))
$$
such that $D(x) = 0$ and $D(f_i) = x^{-n}$. Let
$$
A = \{f \in \mathbf{C}\{x\} \mid D(f) \in \mathbf{C}[[x]]\}
$$
We claim that
\begin{enumerate}
\item $\mathbf{C}\{x\}$ is integral over $A$,
\item $A$ is a local domain,
\item $\dim(A) = 1$,
\item the maximal ideal of $A$ is generated by $x$ and $xf_1$,
\item $A$ is Noetherian, and
\item the completion of $A$ is equal to the ring of dual numbers
over $\mathbf{C}[[x]]$.
\end{enumerate}
Since the dual numbers are nonreduced the ring $A$ gives the example.
\medskip\noindent
Note that if $0 \not = f \in x\mathbf{C}\{x\}$ then
we may write $D(f) = h/f^n$ for some $n \geq 0$ and $h \in \mathbf{C}[[x]]$.
Hence $D(f^{n + 1}/(n + 1)) \in \mathbf{C}[[x]]$
and $D(f^{n + 2}/(n + 2)) \in \mathbf{C}[[x]]$. Thus we
see $f^{n + 1}, f^{n + 2} \in A$!
In particular we see (1) holds. We also conclude that
the fraction field of $A$ is equal to the fraction field of
$\mathbf{C}\{x\}$. It also follows immediately that
$A \cap x\mathbf{C}\{x\}$ is the set of nonunits of $A$, hence
$A$ is a local domain of dimension $1$. If we can show (4)
then it will follow that $A$ is Noetherian (proof omitted).
Suppose that $f \in A \cap x\mathbf{C}\{x\}$. Write
$D(f) = h$, $h \in \mathbf{C}[[x]]$. Write $h = c + xh'$
with $c \in \mathbf{C}$, $h' \in \mathbf{C}[[x]]$. Then
$D(f - cxf_1) = c + xh' - c = xh'$. On the other hand
$f - cxf_1 = xg$ with $g \in \mathbf{C}\{x\}$, but by the
computation above we have $D(g) = h' \in \mathbf{C}[[x]]$
and hence $g \in A$. Thus $f = cxf_1 + xg \in (x, xf_1)$ as desired.
\medskip\noindent
Finally, why is the completion of $A$ nonreduced? Denote $\hat A$ the
completion of $A$. Of course this maps surjectively to the completion
$\mathbf{C}[[x]]$ of $\mathbf{C}\{x\}$ because $x \in A$. Denote
this map $\psi : \hat A \to \mathbf{C}[[x]]$.
Above we saw that $\mathfrak m_A = (x, xf_1)$
and hence $D(\mathfrak m_A^n) \subset (x^{n - 1})$ by an easy
computation. Thus $D : A \to \mathbf{C}[[x]]$ is continuous and
gives rise to a continuous derivation $\hat D : \hat A \to \mathbf{C}[[x]]$
over $\psi$. Hence we get a ring map
$$
\psi + \epsilon \hat D :
\hat A
\longrightarrow
\mathbf{C}[[x]][\epsilon].
$$
Since $\hat A$ is a one dimensional Noetherian complete local ring, if we
can show this arrow is surjective then it will follow that $\hat A$
is nonreduced. Actually the map is an isomorphism but we omit the
verification of this. The subring $\mathbf{C}[x]_{(x)} \subset A$
gives rise to a map $i : \mathbf{C}[[x]] \to \hat A$ on completions such
that $i \circ \psi = \text{id}$ and such that $D \circ i = 0$
(as $D(x) = 0$ by construction). Consider the elements $x^nf_n \in A$.
We have
$$
(\psi + \epsilon D)(x^nf_n) = x^n f_n + \epsilon
$$
for all $n \geq 1$. Surjectivity easily follows from these remarks.
\section{A non catenary Noetherian local ring}
\label{section-non-catenary-Noetherian-local}
\noindent
Even though there is a succesful dimension theory of Noetherian local rings
there are non-catenary Noetherian local rings. An example may be found in
\cite[Appendix, Example 2]{Nagata}. In fact, we will present this example
in the simplest case. Namely, we will construct a local Noetherian domain $A$
of dimension $2$ which is not universally catenary. (Note that $A$ is
automatically catenary, see
Exercises, Exercise
\ref{exercises-exercise-Noetherian-local-domain-dim-2-catenary}.)
The existence of a Noetherian local ring which is not universally
catenary implies the existence of a Noetherian local ring which
is not catenary -- and we spell this out at the end of this section
in the particular example at hand.
\medskip\noindent
Let $k$ be a field, and consider the formal power series ring
$k[[x]]$ in one variable over $k$. Let
$$
z = \sum\nolimits_{i = 1}^\infty a_i x^i
$$
be a formal power series. We assume $z$ as an element of the Laurent
series field $k((x)) = f.f.(k[[x]])$ is transcendental over $k(x)$.
Put
$$
z_j
=
x^{-j}(z - \sum\nolimits_{i = 1, \ldots, j - 1} a_i x^i)
=
\sum\nolimits_{i = j}^\infty a_i x^{i - j}
\in k[[x]].
$$
Note that $Z = z_1$.
Let $R$ be the subring of $k[[x]]$ generated by $x$, $z$ and all of the
$z_j$, in other words
$$
R = k[x, z_1, z_2, z_3, \ldots ] \subset k[[x]].
$$
Consider the ideals $\mathfrak m = (x)$ and
$\mathfrak n = (x - 1, z_1, z_2, \ldots)$ of $R$.
\medskip\noindent
We have $x(z_{j + 1} + a_j) = z_j$. Hence $R/\mathfrak m = k$
and $\mathfrak m$ is a maximal ideal. Moreover, any element of $R$
not in $\mathfrak m$ maps to a unit in $k[[x]]$ and hence
$R_{\mathfrak m} \subset k[[x]]$. In fact it is easy to deduce
that $R_{\mathfrak m}$ is a discrete valuation ring and residue
field $k$.
\medskip\noindent
We claim that
$$
R/(x - 1) =
k[x, z_1, z_2, z_3, \ldots ]/(x - 1)
\cong
k[z].
$$
Namely, the relation above implies that
$(x - 1)(z_{j + 1} + a_j) = -z_{j + 1} - a_j + z_j$, and hence
we may express the class of $z_{j + 1}$ in terms of $z_j$ in
the quotient $R/(x - 1)$. Since the fraction field of $R$
has transcendence degree $2$ over $k$ by construction we see that $z$ is
transcendental over $k$ in $R/(x - 1)$, whence the desired isomorphism.
Hence $\mathfrak n = (x - 1, z)$ and is a maximal ideal. In fact the
map
$$
k[x, x^{-1}, z]_{(x - 1, z)} \longrightarrow R_{\mathfrak n}
$$
is an isomorphism (since $x^{-1}$ is invertible in $R_{\mathfrak n}$
and since $z_{j + 1} = x^{-1}z_j - a_j = \ldots = f_j(x, x^{-1}, z)$).
This shows that $R_{\mathfrak n}$ is a regular local ring
of dimension $2$ and residue field $k$.
\medskip\noindent
Let $S$ be the multiplicative subset
$$
S =
(R \setminus \mathfrak m) \cap (R \setminus \mathfrak n) =
R \setminus (\mathfrak m \cup \mathfrak n)
$$
and set $B = S^{-1}R$. We claim that
\begin{enumerate}
\item The ring $B$ is a $k$-algebra.
\item The maximal ideals of the ring $B$ are the two ideals
$\mathfrak mB$ and $\mathfrak nB$.
\item The residue fields at these maximal ideals is $k$.
\item We have $B_{\mathfrak mB} = R_{\mathfrak m}$
and $B_{\mathfrak nB} = R_{\mathfrak n}$
which are Noetherian regular local rings of dimensions $1$ and $2$.
\item The ring $B$ is Noetherian.
\end{enumerate}
We omit the details of the verifications.
\medskip\noindent
Whenever given a $k$-algebra $B$ with the properties listed above we
get an example as follows. Take $A = k + \text{rad}(B) \subset B$,
in our case $\text{rad}(B) = \mathfrak mB + \mathfrak nB$.
It is easy to see that $B$ is finite over $A$ and hence $A$ is
Noetherian by Eakin's theorem (see \cite{Eakin}, or
\cite[Appendix A1]{Nagata}, or insert future reference here).
Also $A$ is a local domain with the same fraction field as $B$ and
residue field $k$. Since the dimension of $B$ is $2$ we see that $A$
has dimension $2$ as well, by
Algebra, Lemma \ref{algebra-lemma-integral-sub-dim-equal}.
\medskip\noindent
If $A$ were universally catenary then the dimension formula,
Algebra, Lemma \ref{algebra-lemma-dimension-formula}
would give $\dim(B_{\mathfrak mB}) = 2$ contradiction.
\medskip\noindent
Note that $B$ is generated by one element over $A$.
Hence $B = A[x]/\mathfrak p$ for some prime
$\mathfrak p$ of $A[x]$. Let $\mathfrak m' \subset A[x]$ be
the maximal ideal corresponding to $\mathfrak mB$. Then on
the one hand $\dim(A[x]_{\mathfrak m'}) = 3$ and on the
other hand
$$
(0)
\subset \mathfrak pA[x]_{\mathfrak m'}
\subset \mathfrak m'A[x]_{\mathfrak m'}
$$
is a maximal chain of primes. Hence $A[x]_{\mathfrak m'}$ is
an example of a non catenary Noetherian local ring.
\section{Non-quasi-affine variety with quasi-affine normalization}
\label{section-nonquasi-affine}
\noindent
The existence of an example of this kind is mentioned in
\cite[II Remark 6.6.13]{EGA}. They refer to the fifth volume of
EGA for such an example, but the fifth volume did not appear.
\medskip\noindent
Let $k$ be a field.
Let $Y = \mathbf{A}^2_k \setminus \{(0, 0)\}$.
We are going to construct a finite surjective birational morphism
$\pi : Y \longrightarrow X$
with $X$ a variety over $k$ such that $X$ is not quasi-affine.
Namely, consider the following curves in $Y$:
$$
\begin{matrix}
C_1 & : & x = 0 \\
C_2 & : & y = 0
\end{matrix}
$$
Note that $C_1 \cap C_2 = \emptyset$. We choose the isomorphism
$\varphi : C_1 \to C_2$, $(0, y) \mapsto (y^{-1}, 0)$.
We claim there is a unique morphism $\pi : Y \to X$ as above
such that
$$
\xymatrix{
C_1
\ar@<1ex>[rr]^{\text{id}} \ar@<-1ex>[rr]_{\varphi}
& &
Y \ar[r]^\pi & X
}
$$
is a coequalizer diagram in the category of varieties (and even in
the category of schemes). Accepting this for the moment let us
show that such an $X$ cannot be quasi-affine. Namely, it is clear
that we would get
$$
\Gamma(X, \mathcal{O}_X) =
\{ f \in k[x, y] \mid f(0, y) = f(y^{-1}, 0)\} =
k \oplus (xy) \subset k[x, y].
$$
In particular these functions do not separate the points $(1, 0)$
and $(-1, 0)$ whose images in $X$ (we will see below) are distinct
(if the characteristic of $k$ is not $2$).
\medskip\noindent
To show that $X$ exists consider the Zariski open
$D(x + y) \subset Y$ of $Y$. This is the spectrum
of the ring
$k[x, y, 1/(x + y)]$
and the curves $C_1$, $C_2$ are completely contained in
$D(x + y)$. Moreover the morphism
$$
C_1 \coprod C_2
\longrightarrow
D(x + y) \cap Y = \Spec(k[x, y, 1/(x + y)])
$$
is a closed immersion. It follows from
More on Algebra, Lemma \ref{more-algebra-lemma-fibre-product-finite-type}
that the ring
$$
A =
\{f \in k[x, y, 1/(x + y)] \mid f(0, y) = f(y^{-1}, 0)\}
$$
is of finite type over $k$. On the other hand we have the open
$D(xy) \subset Y$ of $Y$ which is disjoint from the curves $C_1$
and $C_2$. It is the spectrum of the ring
$$
B = k[x, y, 1/xy].
$$
Note that we have $A_{xy} \cong B_{x + y}$ (since $A$ clearly contains
the elements $xyP(x, y)$ any polynomial $P$ and the element $xy/(x + y)$).
The scheme $X$ is obtained by glueing the affine schemes
$\Spec(A)$ and $\Spec(B)$ using the isomorphism
$A_{xy} \cong B_{x + y}$ and hence is clearly of finite type over
$k$. To see that it is separated one has to show that the
ring map $A \otimes_k B \to B_{x + y}$ is surjective. To see
this use that $A \otimes_k B$ contains the element
$xy/(x + y) \otimes 1/xy$ which maps to $1/(x + y)$.
The morphism $X \to Y$ is given by the natural maps
$D(x + y) \to \Spec(A)$ and $D(xy) \to \Spec(B)$.
Since these are both finite we deduce that $X \to Y$ is finite
as desired. We omit the verification that $X$ is indeed the
coequalizer of the displayed diagram above, however, see
(insert future reference for pushouts in the category of schemes
here). Note that the morphism $\pi : Y \to X$ does
map the points $(1, 0)$
and $(-1, 0)$ to distinct points in $X$ because the
function $(x + y^3)/(x + y)^2 \in A$ has value
$1/1$, resp.\ $-1/(-1)^2 = -1$ which are always distinct
(unless the characteristic is $2$ -- please find your own points
for characteristic $2$). We summarize this discussion in the
form of a lemma.
\begin{lemma}
\label{lemma-quasi-affine-normalization-not-quasi-affine}
Let $k$ be a field.
There exists a variety $X$ whose normalization is quasi-affine but
which is itself not quasi-affine.
\end{lemma}
\begin{proof}
See discussion above and (insert future reference on normalization here).
\end{proof}
\section{A locally closed subscheme which is not open in closed}
\label{section-strange-immersion}
\noindent
This is a copy of
Morphisms, Example \ref{morphisms-example-thibaut}.
Here is an example of an immersion which is not a composition of an
open immersion followed by a closed immersion.
Let $k$ be a field.
Let $X = \Spec(k[x_1, x_2, x_3, \ldots])$.
Let $U = \bigcup_{n = 1}^{\infty} D(x_n)$.
Then $U \to X$ is an open immersion.
Consider the ideals
$$
I_n =
(x_1^n, x_2^n, \ldots, x_{n - 1}^n, x_n - 1, x_{n + 1}, x_{n + 2}, \ldots)
\subset
k[x_1, x_2, x_3, \ldots][1/x_n].
$$
Note that $I_n k[x_1, x_2, x_3, \ldots][1/x_nx_m] = (1)$
for any $m \not = n$. Hence the quasi-coherent ideals
$\widetilde I_n$ on $D(x_n)$ agree on $D(x_nx_m)$, namely
$\widetilde I_n|_{D(x_nx_m)} = \mathcal{O}_{D(x_n x_m)}$ if
$n \not = m$. Hence these ideals glue to a quasi-coherent sheaf of ideals
$\mathcal{I} \subset \mathcal{O}_U$.
Let $Z \subset U$ be the closed subscheme corresponding to
$\mathcal{I}$. Thus $Z \to X$ is an immersion.
\medskip\noindent
We claim that we cannot factor $Z \to X$ as
$Z \to \overline{Z} \to X$, where $\overline{Z} \to X$ is closed
and $Z \to \overline{Z}$ is open. Namely, $\overline{Z}$ would
have to be defined by an ideal $I \subset k[x_1, x_2, x_3, \ldots]$
such that $I_n = I k[x_1, x_2, x_3, \ldots][1/x_n]$.
But the only element $f \in k[x_1, x_2, x_3, \ldots]$
which ends up in all $I_n$ is $0$! Hence $I$ does not exist.
\section{Nonexistence of suitable opens}
\label{section-nonexistence-opens}
\noindent
This section complements the results of
Properties, Section \ref{properties-section-finding-affine-opens}.
\medskip\noindent
Let $k$ be a field and let $A = k[z_1, z_2, z_3, \ldots]/I$ where $I$
is the ideal generated by all pairwise products
$z_iz_j$, $i \not = j$, $i, j \in \mathbf{N}$. Set $S = \Spec(A)$.
Let $s \in S$ be the closed point corresponding to the maximal
ideal $(z_i)$. We claim there is no
quasi-compact open $V \subset S \setminus \{s\}$ which is
dense in $S \setminus \{s\}$. Note that $S \setminus \{s\} = \bigcup D(z_i)$.
Each $D(z_i)$ is open and irreducible with generic point
$\eta_i$. We conclude that $\eta_i \in V$ for all $i$.
However, a principal affine open of $S \setminus \{s\}$ is
of the form $D(f)$ where $f \in (z_1, z_2, \ldots)$. Then
$f \in (z_1, \ldots, z_n)$ for some $n$ and we see that $D(f)$ contains
only finitely many of the points $\eta_i$. Thus $V$ cannot be quasi-compact.
\medskip\noindent
Let $k$ be a field and let $B = k[x, z_1, z_2, z_3, \ldots]/J$ where $J$
is the ideal generated by the products $xz_i$, $i \in \mathbf{N}$ and by
all pairwise products $z_iz_j$, $i \not = j$, $i, j \in \mathbf{N}$.
Set $T = \Spec(B)$. Consider the principal open $U = D(x)$.
We claim there is no quasi-compact open $V \subset S$ such that
$V \cap U = \emptyset$ and $V \cup U$ is dense in $S$.
Let $t \in T$ be the closed point corresponding to the maximal
ideal $(x, z_i)$. The closure of $U$ in $T$ is
$\overline{U} = U \cup \{t\}$. Hence $V \subset \bigcup_i D(z_i)$
is a quasi-compact open. By the arguments of the previous paragraph
we see that $V$ cannot be dense in $\bigcup D(z_i)$.
\begin{lemma}
\label{lemma-complement-of-affine-does-not-contain-qc-dense-open}
Nonexistence quasi-compact opens of affines:
\begin{enumerate}
\item There exist an affine scheme $S$ and affine open $U \subset S$
such that there is no quasi-compact open $V \subset S$ with
$U \cap V = \emptyset$ and $U \cup V$ dense in $S$.
\item There exists an affine scheme $S$ and a closed point $s \in S$ such that
$S \setminus \{s\}$ does not contain a quasi-compact dense open.
\end{enumerate}
\end{lemma}
\begin{proof}
See discussion above.
\end{proof}
\noindent
Let $X$ be the glueing of two copies of the affine scheme $T$ (see above)
along the affine open $U$. Thus there is a morphism $\pi : X \to T$ and
$X = U_1 \cup U_2$ such that $\pi$ maps $U_i$ isomorphically to $T$ and
$U_1 \cap U_2$ isomorphically to $U$. Note that $X$ is quasi-separated
(by Schemes, Lemma \ref{schemes-lemma-characterize-quasi-separated})
and quasi-compact. We claim there does not exist a separated, dense,
quasi-compact open $W \subset X$. Namely, consider the two closed
points $x_1 \in U_1$, $x_2 \in U_2$ mapping to the closed point $t \in T$
introduced above. Let $\tilde \eta \in U_1 \cap U_2$ be the generic point
mapping to the (unique) generic point $\eta$ of $U$.
Note that $\tilde\eta \leadsto x_1$ and $\tilde\eta \leadsto x_2$
lying over the specialization $\eta \leadsto s$.
Since $\pi|_W : W \to T$ is separated we conclude that we cannot have both
$x_1$ and $x_2 \in W$ (by the valuative criterion of separatedness
Schemes, Lemma \ref{schemes-lemma-valuative-criterion-separatedness}).
Say $x_1 \not \in W$. Then $W \cap U_1$ is a quasi-compact (as $X$
is quasi-separated) dense open of $U_1$ which does not contain $x_1$.
Now observe that there exists an isomorphism $(T, t) \cong (S, s)$
of schemes (by sending $x$ to $z_1$ and $z_i$ to $z_{i + 1}$).
Hence by the first paragraph of this section we arrive at a contradiction.
\begin{lemma}
\label{lemma-no-dense-separated-quasi-compact-open-in-qcqs}
There exists a quasi-compact and quasi-separated scheme $X$ which does
not contain a separated quasi-compact dense open.
\end{lemma}