Skip to main content

Formalizing the Unexpected Hanging Paradox: A Classical Surprise

  • Conference paper
  • First Online:
Logic and Argumentation (CLAR 2023)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 14156))

Included in the following conference series:

Abstract

In this work, we define a novel approach to the formalization of the unexpected hanging paradox, sometimes called the surprise examination paradox, mechanized in the Coq Proof Assistant. This paradox requires the definition of the notion of a surprise event, which, for the purposes of this paradox, is usually interpreted as the inability to predict what day a specific event takes place. Our use of constructive logic allows us to distinguish between possibility and certainty. We make the observation that an inevitable, but unexpected, event requires there being strictly more than one possible day on which it can occur, and define surprise accordingly. We formalize the paradox using this interpretation of surprise, then specify a family of propositions representing beliefs about whether a hanging occurs on a particular day, parametrized by the planned hanging day. We define what members of this family are in accordance with the paradox constraints, and demonstrate that this family is inhabited by classical propositions. We assert that this offers an unexpected, but satisfying resolution to the paradox, which agrees with our intuition, all without the need for self-referential predicates used in existing work. We compare our definition to a weaker interpretation of surprise, giving an analysis of how it interplays with the use of both classical and constructive logic, and could allow the prisoner to reach an apparently faulty conclusion. We note that this interpretation offers a satisfying solution to the “conditional” variation of the unexpected hanging paradox.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Ardeshir, M., Ramezanian, R.: A solution to the surprise exam paradox in constructive mathematics. Rev. Symbolic Logic 5, 1–8 (2012). https://doi.org/10.1017/S1755020312000160

  2. Benzmüller, C., Woltzenlogel Paleo, B.: Interacting with modal logics in the coq proof assistant. In: Beklemishev, L.D., Musatov, D.V. (eds.) CSR 2015. LNCS, vol. 9139, pp. 398–411. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-20297-6_25

    Chapter  MATH  Google Scholar 

  3. Chow, T.Y.: The surprise examination or unexpected hanging paradox. Am. Math. Monthly 105(1), 41–51 (1998). http://www.jstor.org/stable/2589525

  4. CNRS, contributors: Coq reference manual (2021). https://coq.inria.fr/distrib/current/refman/

  5. Diaconescu, R.: Axiom of choice and complementation. Proc. Am. Math. Soc. 51(1), 176–178 (1975). http://www.jstor.org/stable/2039868

  6. Fitch, F.B.: A goedelized formulation of the prediction paradox. Am. Philos. Q. 1(2), 161–164 (1964). http://www.jstor.org/stable/20009132

  7. Gardner, M.: Unexpected Hanging Paradox and Other Mathematical Diversions. University of Chicago Press, Chicago (1991)

    Google Scholar 

  8. Halcrow, W., Holliday, W.: Simplifying the surprise exam (2015)

    Google Scholar 

  9. Halpern, J.Y., Moses, Y.: Taken by surprise: the paradox of the surprise test revisited. J. Philos. Logic 15(3), 281–304 (1986). http://www.jstor.org/stable/30226356

  10. Harrison, C.: The unanticipated examination in view of Kripke’s semantics for modal logic, pp. 74–88. Springer, Netherlands, Dordrecht (1969). https://doi.org/10.1007/978-94-010-9614-0_5

  11. Kim, B., Vasudevan, A.: How to expect a surprising exam. Synthese 194, 3101–3133 (2017)

    Article  MathSciNet  MATH  Google Scholar 

  12. Kritchman, S., Raz, R.: The surprise examination paradox and the second incompleteness theorem. Not. AMS 57, 1454–1458 (2010)

    Google Scholar 

  13. van Lambalgen, M.: Independence, randomness and the axiom of choice. J. Symbolic Logic 57(4), 1274–1304 (1992). http://www.jstor.org/stable/2275368

  14. Lindner, F., Bentzen, M.M.: A formalization of Kant’s second formulation of the categorical imperative (2018). https://doi.org/10.48550/ARXIV.1801.03160, https://arxiv.org/abs/1801.03160

  15. O’connor, D.J.: Pragmatic paradoxes. Mind LVI I(227), 358–359 (1948). https://doi.org/10.1093/mind/LVII.227.358

  16. Ramezanian, R.: A constructive epistemic logic with public announcement (non-predetermined possibilities). CoRR abs/1302.0975 (2013), http://arxiv.org/abs/1302.0975

  17. Shaw, R.: The paradox of the unexpected examination. Mind 67(267), 382–384 (1958). https://doi.org/10.1093/mind/lxvii.267.382

    Article  Google Scholar 

  18. Williamson, T.: Knowledge and its Limits. Oxford University Press, New York (2000)

    Google Scholar 

Download references

Acknowledgements

I would like to thank my awesome graduate school supervisors, Dr. Amy Felty and Dr. Philip Scott, as well as numerous colleagues at IOG, for listening to me ramble on about this paradox. I would especially like to thank Dr. Pieter Hofstra, may he rest in peace, for making the bold move of asking for a resolution of this paradox as a (surprise) bonus question on a computability theory exam. I could not stop thinking about it ever since, until, hopefully, now.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Polina Vinogradova .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Vinogradova, P. (2023). Formalizing the Unexpected Hanging Paradox: A Classical Surprise. In: Herzig, A., Luo, J., Pardo, P. (eds) Logic and Argumentation. CLAR 2023. Lecture Notes in Computer Science(), vol 14156. Springer, Cham. https://doi.org/10.1007/978-3-031-40875-5_4

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-40875-5_4

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-40874-8

  • Online ISBN: 978-3-031-40875-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics