Submitted:
02 October 2025
Posted:
03 October 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Geometry Education: Providing a precise language to help students better understand the nuances of geometric relations.
- Automated Theorem Proving: A formal HoTT definition of geometric objects can lead to more robust automated provers for geometry.
- Computer-Aided Design (CAD): Expressive logic for defining and manipulating geometric objects and their relationships.
- Robotics and AI: Formalizing the sophisticated understanding of shape and space required for AI systems that reason about the physical world.
2. Background on Homotopy Type Theory
2.1. Types as Spaces and Identity as Paths
2.2. Higher Inductive Types (HITs)
2.3. Precise Geometric Definitions
2.4. The Univalence Axiom
3. A Formal Framework for Geometric Equality
3.1. The Type of Triangles
3.2. Equality of Triangles as Paths
4. Case Study: Equalities of Triangles
4.1. Strict Equality
4.2. Congruence
- A permutation σ of .
-
Equalities of corresponding side lengths:
- –
- –
- –

4.3. Similarity
- A permutation σ of .
- A positive scale factor .
-
Equalities of proportional side lengths:
- –
- –
- etc. for the other two sides.

4.4. The Moduli Space of Triangles
- A point constructor shape: Triangle → TriangleShape.
- A path constructor that turns any congruence into a path: for any : Triangleand any congruence proof , there is a path

5. Applications
5.1. Geometry Education
- Equality (Id type): Being the very same object in the same location.
- Congruence (≅): An equivalence preserving distance, identified with a path in the space of shapes.
- Similarity (∼): An equivalence preserving angles but not distances.
5.2. Automated Theorem Proving
5.3. CAD Systems and AI
6. Related Work
7. Conclusion
- Full Formalization: Implementing this framework in a HoTT-compatible proof assistant like Cubical Agda to formally verify congruence theorems (e.g., SAS, ASA) as constructions of paths in ‘TriangleShape’.
- Generalization: Extending the framework to polygons, circles, and 3D objects, which will require more complex HITs to define their respective moduli spaces.
- Connections to Physics: Exploring how this framework for geometric invariance connects to the role of symmetry and transformation groups in physics, for which HoTT seems a natural language.
References
- Norell, Ulf. “Towards a practical programming language based on dependent type theory.” PhD diss., Chalmers University of Technology, 2007.
- Bezem, Marc, and Thierry Coquand. “Automating proofs in constructive geometry.” Journal of Automated Reasoning 42.2 (2009): 237-268.
- The Coq Development Team. “The Coq proof assistant reference manual.” Version 8.17. Inria, 2023.
- Narboux, Julien, et al. “GeoCoq: A formalization of geometry in Coq.” Journal of Automated Reasoning 56.4 (2016): 387-417.
- The Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. Institute for Advanced Study, 2013.
- Mohamed, T., et al. “LeanGeo: Formalizing Competitional Geometry problems in Lean.” arXiv preprint arXiv:2311.10126 (2023). [CrossRef]
- The mathlib Community. “The Lean mathematical library.” https://leanprover-community.github.io/mathlib-overview.html, 2023.
- Voevodsky, Vladimir. “Univalent foundations of mathematics.” arXiv preprint arXiv:1409.2853 (2014).
- von Plato, Jan. “The Axioms of Constructive Geometry.” Annals of Pure and Applied Logic 76.2 (1995): 169-200. [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).