Outside the city of Shuntian there was a temple, and in autumn the nights turned cold early, and the monks shut the gate before dark. A student named Tao Shengyu had a room in the west wing. He was reading by an oil lamp a little after midnight when he heard footsteps in the courtyard. They were not hurried. They came step by step to his window and stopped, and then the door was pushed open.
The man who came in was about twenty, in a blue cloth robe washed nearly white, with an old book chest on his back. He bowed and said his name was Yu Quwu, that he was travelling to sit an examination, and that he needed a place for the night. He did not talk like a thief, so Tao let him stay. The two of them talked until daylight.
The story is called Yu Quwu, and it is in the collection of Pu Songling. Pu wrote it when he had already spent most of his life in examination halls. He passed the lowest degree at nineteen and then failed the provincial examination again and again, into his sixties. The underworld he writes is not a haunted place. It is an office. The examination system he writes is not a road out. It is a series of doors, and there is a man sitting at every door.
The hardest stroke in the story is not a ghost. It is an examiner. The dead hold provincial examinations too. Three sessions, then a list of names. But most of the examiners in the underworld are the sons of rich men who never read a book, who bought a post after they died and now sit in the hall marking papers. Their eyes are blind.

After Yu moved in, he slept through the days and went out at night. Tao asked what he did. He said he was sitting an examination. Tao said there were no examinations at that hour. He said there were, in the underworld.
Tao did not believe him at first. Then one night, before going out, Yu opened his book chest and showed him a stack of answer papers. The writing was tiny and dense, the paper grey, cold to the touch. Tao asked how a candidate learned the result. Yu said a list was posted. Tao asked where. Yu said on the west wall of the city god temple.
The next day Tao went to the city god temple. The west wall was bare except for a coat of old lime.
Yu sat three sessions. He came back from the first in good spirits, saying the questions were not hard and he had filled every page. He came back from the second and sat on the edge of the bed without speaking for a long time. Then he said that the man beside him had written nothing at all, handed in a blank sheet, and was smiling as he left. Tao asked why a man with a blank sheet would smile. Yu said his father was waiting outside.
After the third session he slept for two days.
On the day the list went up he left before dawn and came back when the sun was high. He put something on the table: a sheet of paper covered with names, and his name was not among them, from the first line to the last. He sat down and said he had expected it, but not quite like this.
Tao did not know what to say, so he poured him a bowl of wine. Yu drank it and said: do you want to know why I failed. Tao said yes. He said: because the men who read the papers cannot see.
He said that when an examiner takes that seat in the underworld, his eyes are covered. Not blind from birth. Blind from sitting down. Some of them deserve it, men who never studied, who bought their degrees with money in life and bought a post with money after death, and when they take the seat their sight goes. Some of them do not deserve it, men who had studied well and were pushed into the chair by others, and their sight goes too. He said: you can write better than anyone in that hall, and it makes no difference, because he is not looking.
Tao said that left no hope at all. Yu said there was hope. Every three years, after the examination, someone came down from above to inspect. Not an examiner. An inspector.
He did not give the inspector a name. He said only: that lord is the Marquis Huan.
Tao asked which Marquis Huan. Yu said: the one who bellowed on the Long Slope Bridge and turned back an army.
That winter the Marquis came.
Yu said that when he arrived every door in the underworld was shut and there was nobody on the streets. Yu watched through a gap in a door. A column of men came down the road, and at the front was a black horse, and the rider wore armour rather than official robes. At the gate of the examination hall the rider got down, went in, and turned over every paper in the building.
Halfway through he stopped. He asked who had read these papers.
Nobody answered. He asked again.
Then he carried the papers out into the courtyard and set fire to them. As the fire came up, the blind examiners walked out one by one, and at the doorway they came apart, like smoke.
Tao asked whether he had passed. Yu said there would be a new examination. On the day of it he wrote slowly. He said that halfway through he looked up and saw the horse still standing in the courtyard, chewing fodder.
This time his name was on the list.
Once he had passed he had to go and take up his post, and before leaving he took Tao aside. He said he had a friend named Fang Zijin, a good young man, dead and with nowhere to go, who had been following him for a long time. He said that when he left, there would be nobody to look after him, and asked whether Tao would take him home.
Tao said he was a living man and could hardly bring a ghost with him.
Yu said the ghost did not need to be brought. He would follow on his own. All Tao had to do was leave a place for him in the room.
Tao agreed. He went back to Shuntian, put an extra chair and a small table in his study, and every night before sleeping set a cup of clear water on the table. For the first month nothing happened. In the second month, reading late, he felt someone behind him, turned, and found nothing, but a page of the book on his desk had been turned.
After that he got used to it. When he was writing and stuck, he would put down the brush and say aloud: how would you finish this. In the morning there would be a line of small neat writing on the paper, in a hand not his own.
Later his wife became pregnant. The child was a boy. He came out not crying, with his eyes wide open, looking at the roof beam. The midwife said the eyes were wrong somehow, as if the child recognised someone.
Tao held him and said: Zijin, is that you.
The baby looked at him and smiled.
Pu Songling handles the ending better than a disappointed man usually can. He does not bring Yu back for revenge. He does not punish the blind examiners. He sends an inspector past, once, who turns over the papers, finds one good paper that failed, and orders a re-examination. That is all.
Tao passed the provincial examination later and became an official, and for several postings he was in charge of examinations. Every time he entered a hall he would first stand in the courtyard for a while and look around for a horse. His colleagues thought it strange. Once a young chief examiner asked him what he was looking at. He said he was checking whether anyone was turning over the papers.
The young man laughed and said the papers were locked in the inner room.
Tao said: locked, and still somebody reads them.
He never explained. He rose high in the service, and in his whole career he never ruined an innocent man and never promoted one who did not deserve it. Somebody asked him once why he was so careful, and he said only that in his life he had seen one re-examination.
This is where the story does something that most Chinese ghost stories and most European ones do not, because it treats the dead as staff. In the Christian imagination the dead are judged, once, at the end, and the verdict is final and moral: sheep and goats, heaven and fire. The Chinese underworld is not a courtroom with one verdict. It is a government, with departments, seals, files, promotions, and inspections. The dead hold examinations because the living hold examinations. Souls are assigned posts the way clerks are assigned posts.
And because it is a government, it can be corrected. Not often, and not by the people who were wronged. Somebody from above has to ride past on a black horse. That is the fantasy in the tale, and it is a very Chinese fantasy: not that the system is just, but that once in a great while an inspector actually reads the file.
There is a modern European novel about a man who waits outside a door that never opens. Chinese storytellers did not need the novel. They had the examination hall. A candidate sits in a cell for three days, writes everything he knows, hands it up to a man who cannot see, and then reads a wall.
The difference is the horse. Pu Songling put a horse in the courtyard.
The other thing worth noticing is what Yu says about the blind. Some of them bought the seat. Some of them were pushed into it. Both go blind. Pu does not sort the guilty from the unlucky, and he does not let Tao ask which of the examiners that winter were which. The fire takes all of them, and they all come apart at the door like smoke.
Tao spends the rest of his life standing in courtyards, checking for a horse. He never sees one again. He keeps the extra chair in his study for the rest of his life, and the cup of water, and he never tells anyone why, except once, to a young man who laughed at him.