Test "tutorial/112_indexedStructEta"
Expected: ✋ reject · Size: 8.8 KB · Lines: 138 · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · 📄 Declaration · 🔗 Source · 📖 Tutorial
Structure eta applies only to non-recursive structures without indices (the
official kernel's is_non_rec_structure required nindices == 0 when this test was
written), so it does not fire for IndexedSingleton even though that has a single
constructor.
Every field of IndexedSingleton.mk is a proof, so a kernel that checks only
"has a single constructor" and then compares the fields against projections
would have proof irrelevance discharge the remaining goals, and would wrongly
accept this.