Isabelle_DOF/src
Nicolas Méric 73dfcd6c1e
ci/woodpecker/push/build Pipeline was successful Details
Implement rejects clause
- The current implementation triggers a warning when
  rejected classes are find in the monitor,
  and an error if monitor_strict_checking is enable.
  It follows these rules:
  Inside the scope of a monitor,
  all instances of classes mentioned in its accepts_clause
  (the ∗‹accept-set›) have to appear in the order specified
  by the regular expression.
  Instances not covered by an accept-set may freely occur.
  Monitors may additionally contain a rejects_clause
  with a list of class-ids (the reject-list).
  This allows specifying ranges of
  admissible instances along the class hierarchy:
  - a superclass in the reject-list and a subclass in the
    accept-expression forbids instances superior to the subclass, and
  - a subclass S in the reject-list and a superclass T in the
    accept-list allows instances of superclasses of T to occur freely,
    instances of T to occur in the specified order and forbids
    instances of S.
- No message is triggered for the free classes,
  but two theory options, free_class_in_monitor_checking
  and free_class_in_monitor_strict_checking,
  are added and can be used if we want to trigger warnings or errors,
  in the case we do not want free classes inside a monitor.
- Fix the checking warning when defining a monitor,
  as the monitor was added to the monitor table and then
  the instance of the monitor was added to the theory.
  So a monitor had the bad behavior to check itself.
2022-12-21 10:09:17 +01:00
..
DOF Implement rejects clause 2022-12-21 10:09:17 +01:00
document-templates clarified DOF.options: hard-wired document_comment_latex always uses LaTeX version of comment.sty 2022-12-01 21:30:32 +01:00
ontologies Implement rejects clause 2022-12-21 10:09:17 +01:00
scala Tuned messages, following Isabelle/d6a2a8bc40e1 2022-12-05 15:21:26 +01:00
tests Implement rejects clause 2022-12-21 10:09:17 +01:00
ROOT Add missing file (amending 5471d873a9) 2022-12-04 19:26:28 +01:00
ROOTS Fixed file attributes. 2022-04-18 09:20:36 +01:00