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 2b1a9d009e Add support invariants on attributes of attributes
Support invariants on attributes of classes atttributes.

Example:

doc_class inv_test1 =
  a :: int

doc_class inv_test2 =
  b :: "inv_test1"
  c:: int
  invariant inv_test2 :: "c σ = 1"
  invariant inv_test2' :: "a (b σ) = 2"

doc_class inv_test3 = inv_test1 +
  b :: "inv_test1"
  c:: int
  invariant inv_test3 :: "a σ = 1"
  invariant inv_test3' :: "a (b σ) = 2"

To support invariant on attributes in attributes
and invariant on attributes of the superclasses,
we check that the type of the attribute of the subclass is ground:›
ML‹
val Type(st, [ty]) = \<^typ>‹inv_test1›
val Type(st', [ty']) = \<^typ>‹'a inv_test1_scheme›
val t = ty = \<^typ>‹unit›
›
2023-01-13 08:27:26 +01:00
..
figures Fixed file attributes. 2022-04-18 09:44:44 +01:00
AssnsLemmaThmEtc.thy Fixed file attributes. 2022-04-18 09:44:44 +01:00
Attributes.thy Limit scope of free class checking in examples 2022-12-22 07:32:37 +01:00
Cenelec_Test.thy Implement CENELEC Table A.1 2022-06-13 07:56:53 +02:00
Concept_Example.thy Fixed file attributes. 2022-04-18 09:44:44 +01:00
Concept_Example_Low_Level_Invariant.thy Add trace-attribute term antiquotation 2022-11-24 16:47:21 +01:00
Evaluation.thy Explain evaluator option syntax for value_ text antiquotation 2023-01-09 15:13:23 +01:00
High_Level_Syntax_Invariants.thy Add support invariants on attributes of attributes 2023-01-13 08:27:26 +01:00
Isabelle2022.thy More formal management of ontologies in Isabelle/ML/Isar with output via Isabelle/Scala exports 2022-12-04 00:09:29 +01:00
Ontology_Matching_Example.thy Add checking of invariants for class instances 2022-01-24 17:30:48 +01:00
OutOfOrderPresntn.thy Some LaTeX experiments with Achim 2022-11-18 10:30:33 +01:00
ROOT Isabelle/Scala module within session context supports document_build = "dof" without component setup 2022-12-04 19:13:08 +01:00
TermAntiquotations.thy Explain evaluator option syntax for value_ text antiquotation 2023-01-09 15:13:23 +01:00