Registry Mirror
Skip to content

Non-forgetful inheritance in pseudometric_structure.v #2196

Backlog

Description

@affeldt-aist

With version 1.19.0:

File "./theories/topology_theory/pseudometric_structure.v", line 384, characters 0-63:
Warning:
non forgetful inheritance detected.
 You have two solutions: 
1. (Best practice) Reorganize your hierarchy to make 
classical_sets_isPointed depend on Algebra_Zmodule. 
See the paper "Competing inheritance paths in 
dependent type theory" (https://hal.inria.fr/hal-02463336) for more 
explanations 
2. Use the attribute #[non_forgetful_inheritance] to disable this check. 
We strongly advise you encapsulate this instance inside a module, 
in order to isolate it from the rest of the code, and to be able 
to import it on demand. See the above paper and the file 
https://github.com/math-comp/hierarchy-builder/blob/master/tests/non_forgetful_inheritance.v 
to witness devastating effects.
[HB.non-forgetful-inheritance,HB,elpi,default]

Activity

  1. added this to the 1.21.0 milestone on Nov 29, 2026
  2. added
    "bug" 🐛
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    "bug" 🐛

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions