This repository has been archived on 2024-04-22. You can view files and clone it, but cannot push or open issues or pull requests.
Isabelle_DOF/src/tests
Nicolas Méric 76612ae6f3 Add checking of invariants for class instances
- Warning: the current implementation does yet not support
    some use-cases, like invariant on monitors,
    or the initialization of docitem without a class associated.
- Add first draft of the checking of invariants.
  For now, it is disabled by default because some cases
  are not yet supported, like the initialization of docitem
  without a class associated.
  ex: text*[sdf]‹ Lorem ipsum @{thm refl}›
- To enable the checking, one can use the theory attribute
  "invariants_checking" by declaring it in a theory like this:
  declare [[invariants_strict_checking = true]]
- A checking using basic tactics (unfolding and auto) can be enable
  with the "invariants_checking_with_tactics" theory attribute
  for specific use-cases
- The specification of invariants is now automatically abstracted,
  so one must define an invariant like this now:

  doc_class W =
  w::"int"
  invariant w :: "w σ ≥ 3"

  The old form:

  doc_class W =
  w::"int"
  invariant w :: "λσ. w σ ≥ 3"

  is now deprecated.
  The specification of the invariant still uses the σ-notation
  and is defined globally by the name component "invariantN"
- Update the invariants definition in the theories to match
  the new implementation
- Update the manual to explain this new feature
- Add small examples in src/tests/High_Level_Syntax_Invariants.thy
  and src/tests/Ontology_Matching_Example.thy
2022-01-24 17:30:48 +01:00
..
figures mmm 2020-06-22 17:42:40 +02:00
AssnsLemmaThmEtc.thy little debug. 2021-04-21 20:27:23 +02:00
Attributes.thy added paper frame, small things. 2021-12-16 13:49:44 +01:00
Concept_Example.thy mmm 2020-06-22 17:42:40 +02:00
Concept_Example_Low_Level_Invariant.thy Add checking of invariants for class instances 2022-01-24 17:30:48 +01:00
Evaluation.thy Add the possibility to make request on instances 2021-12-13 16:58:54 +01:00
High_Level_Syntax_Invariants.thy Add checking of invariants for class instances 2022-01-24 17:30:48 +01:00
Ontology_Matching_Example.thy Add checking of invariants for class instances 2022-01-24 17:30:48 +01:00
OutOfOrderPresntn.thy added wrapper to achims listings environments. 2020-08-28 12:42:20 +02:00
ROOT Add checking of invariants for class instances 2022-01-24 17:30:48 +01:00
TermAntiquotations.thy Merge branch 'master' of https://git.logicalhacking.com/Isabelle_DOF/Isabelle_DOF 2021-12-16 13:49:49 +01:00