Commit Graph

1665 Commits

Author SHA1 Message Date
Pierre Derathe 244d70896f Merge branch 'main' into test-rebase2
ci/woodpecker/push/build Pipeline failed Details
2023-02-20 12:20:07 +01:00
Pierre Derathe ba0e7d25d3 Common_Criteria_Tests finished with current fonctionnalities 2023-02-20 12:12:02 +01:00
Pierre Derathe 57bd44ecde Enable build for Common_Criteria ontology 2023-02-20 12:12:02 +01:00
Pierre Derathe 983f4cf1c4 Add Common Criteria Terms 2023-02-20 12:12:02 +01:00
Pierre Derathe 55ff33df17 Referencing term in cc_tests 2023-02-20 10:28:04 +01:00
Pierre Derathe ec81f7bbce Final version 2023-02-19 16:26:23 +01:00
Pierre Derathe 2f4307a907 Merge branch 'common-criteria' of https://git.logicalhacking.com/pierre.derathe/Isabelle_DOF into common-criteria 2023-02-19 16:14:10 +01:00
Pierre Derathe d67e270b3d Change of cc and cc_test to be used to create a pdf 2023-02-19 16:08:37 +01:00
Nicolas Méric 848ce311e2 Re-add name field to onto_class
ci/woodpecker/push/build Pipeline failed Details
To keep the abstract syntax information
of the onto_class name, re-add it to the field
of the onto_class structure
2023-02-17 12:56:45 +01:00
Nicolas Méric 6115f0de4a Some cleanup
ci/woodpecker/push/build Pipeline failed Details
2023-02-17 11:35:51 +01:00
Nicolas Méric bdfea3ddb1 Some cleanup
ci/woodpecker/push/build Pipeline failed Details
2023-02-17 09:08:34 +01:00
Nicolas Méric 9de18b148a Remove some instance and onto_class datatypes entries
ci/woodpecker/push/build Pipeline failed Details
Id in instance datatype entry
and name, id and thy_name  in onto_class datatype entry are now
useless, as this information is given by the name space.
Remove them
2023-02-16 10:41:04 +01:00
Nicolas Méric 1459b8cfc3 Use name space markup for onto_class entries reporting 2023-02-16 10:07:56 +01:00
Nicolas Méric 234ff18ec0 Use a name space for Onto Classes
ci/woodpecker/push/build Pipeline failed Details
- Use a name space table to store ontological class objects
- Remove docclass_tab table and accesses
2023-02-15 17:49:29 +01:00
Nicolas Méric 55690bba33 Homogenize instance getters names
ci/woodpecker/push/build Pipeline failed Details
2023-02-14 09:21:11 +01:00
Nicolas Méric 93509ab17d Update file to match the new name space implementation 2023-02-14 09:20:21 +01:00
Nicolas Méric 1e09598d81 Fix typo 2023-02-14 09:20:21 +01:00
Nicolas Méric e01ec9fc21 Use a name space for ML invariants
- Use a name space table to store ML inariants objects
- Remove docclass_inv_tab, docclass_eager_inv_tab,
  and docclass_lazy_inv_tab tables and accesses
2023-02-14 09:20:13 +01:00
Nicolas Méric 7c16d02979 Use a name space for Isabelle_DOF transformers
ci/woodpecker/push/build Pipeline failed Details
- Use a name space table to store Isabelle_DOF transformers objects
- Remove ISA_transformer_tab table and accesses
2023-02-12 16:49:53 +01:00
Nicolas Méric 4a77347e40 Simplify reporting of monitors
ci/woodpecker/push/build Pipeline failed Details
2023-02-12 11:20:13 +01:00
Nicolas Méric 2398fc579a Use name space markup for instances entries reporting
ci/woodpecker/push/build Pipeline failed Details
- Name spaces offer the possibility to make reporting
  by embedding entries position. Use this possibility
  for instances (docitems) reporting
- Position and theory entries in an Instance record are now
  useless, as this information is given by the name space.
  Remove them
2023-02-11 22:48:11 +01:00
Nicolas Méric 821eefb230 Fix some markups
ci/woodpecker/push/build Pipeline failed Details
2023-02-10 15:23:23 +01:00
Nicolas Méric 9b51844fad Use a name space for monitors infos
ci/woodpecker/push/build Pipeline failed Details
- Use a name space table to store monitor infos objects
- Remove monitor_tab table, as monitor infos were moved
  to the name space table
- It offers the possibility to define scoped versions
  of monitors
2023-02-10 13:07:17 +01:00
Nicolas Méric c440f9628f Fix typo
ci/woodpecker/push/build Pipeline failed Details
2023-02-09 16:40:05 +01:00
Nicolas Méric 5b3086bbe5 Use a name space for docitems (instances)
ci/woodpecker/push/build Pipeline failed Details
- Use a name space table to store docitem (instance) objects
- Remove docobj table, as instances were moved to the name space table
- It offers the possibility to define scoped versions
  of docitems declaration
  for text* (and others docitems definition command like value*)
  and declare_reference*.
2023-02-09 16:07:16 +01:00
Pierre Derathe 5aaa5451f6 Common_Criteria_Tests finished with current fonctionnalities 2023-02-01 14:22:59 +01:00
Pierre Derathe 1d4211d7c4 Enable build for Common_Criteria ontology 2023-02-01 14:22:59 +01:00
Pierre Derathe fcae04fd83 Modify CC, CC_tests and CC_terms
All terms and definition are now in CC_terms
2023-02-01 14:22:59 +01:00
Pierre Derathe fab3b3394e Add Common Criteria ontology first draft 2023-02-01 14:22:59 +01:00
Nicolas Méric 7c0d2cee55 Add docitem_name text and ML antiquotations
Add the possibility to reference the name of instances
in text and ML code
2023-01-30 07:43:44 +01:00
Nicolas Méric 7c6150affa Make input_term available with theory option
ci/woodpecker/push/build Pipeline failed Details
The raw value term of docitems is now processed and
available when setting the theory attribute object_value_debug
2023-01-27 15:09:34 +01:00
Nicolas Méric ad4ad52b4e Avoid reporting duplication when possible
ci/woodpecker/push/build Pipeline failed Details
Avoid reporting for meta arguments attributes of isabelle_DOF
commands and for text input of text*

The last reporting duplication not resolved comes
from the document_command command in Isa_DOF,
which parses the meta arguments twice,
one time for the creation of the docitem
with create_and_check_docitem which will add reporting
for the attributes value
(see conv_attrs whichs calls Syntax.read_term_global,
which iwill add reporting)
and the other for the document output
with document_output which also adds reporting
(see meta_args_2_latex which calls
(Syntax.check_term ctxt o Syntax.parse_term ctxt) with
ltx_of_markup and Syntax.parse_term also adds reporting)
2023-01-27 10:32:38 +01:00
Nicolas Méric ba8227e6ab Cleanup and add position to docitem ML antiqutation
ci/woodpecker/push/build Pipeline failed Details
2023-01-26 09:43:51 +01:00
Pierre Derathe a75c47d6b6 Common_Criteria_Tests finished with current fonctionnalities 2023-01-25 16:47:53 +01:00
Pierre Derathe 997491d61f Enable build for Common_Criteria ontology 2023-01-25 15:45:37 +01:00
Pierre Derathe 58edd373f0 Modify CC, CC_tests and CC_terms
All terms and definition are now in CC_terms
2023-01-25 14:57:12 +01:00
Pierre Derathe 4d51d407c6 Add Common Criteria ontology first draft 2023-01-25 14:57:12 +01:00
Nicolas Méric 20b0af740d Update meta args syntax and ML* command
ci/woodpecker/push/build Pipeline failed Details
- Make optional meta arguments completely optional
- Make meta arguments context of ML* available in its ML context
- Make meta arguments of ML* mandatory to mimic text*.
  Without meta arguments, its behavior is already captured by
  the ML command
2023-01-23 09:03:59 +01:00
Nicolas Méric 1379f8a671 Add test of invariants of an inherited attribute of an attribute
ci/woodpecker/push/build Pipeline failed Details
2023-01-20 09:41:19 +01:00
Achim D. Brucker 8fdaafa295 Experimental session with enabled proof objects: Isabelle_DOF-Proofs.
ci/woodpecker/push/build Pipeline failed Details
2023-01-19 22:00:53 +00:00
Nicolas Méric 8513f7d267 Update doc_class rails to match accepts clause
ci/woodpecker/push/build Pipeline was successful Details
2023-01-17 09:01:55 +01:00
Nicolas Méric 2b1a9d009e Add support invariants on attributes of attributes
ci/woodpecker/push/build Pipeline was successful Details
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
Nicolas Méric cd758d2c44 Update accepts clause syntax
ci/woodpecker/push/build Pipeline was successful Details
2023-01-12 12:18:58 +01:00
Nicolas Méric 8496963fec Add comment for term_ and value_ ML antiquoatations
ci/woodpecker/push/build Pipeline was successful Details
2023-01-11 14:49:29 +01:00
Nicolas Méric 72d8000f7b Further explain evaluator option syntax for value_ text antiquotation
ci/woodpecker/push/build Pipeline was successful Details
2023-01-09 15:34:59 +01:00
Nicolas Méric 17ec11b297 Explain evaluator option syntax for value_ text antiquotation
ci/woodpecker/push/build Pipeline was successful Details
2023-01-09 15:13:23 +01:00
Nicolas Méric a96e17abf3 Add term_ and value_ ML antiquotations
ci/woodpecker/push/build Pipeline was successful Details
2023-01-09 11:34:40 +01:00
Nicolas Méric 74b60e47d5 Document term _ and value_ text antiquotations
ci/woodpecker/push/build Pipeline was successful Details
2022-12-22 16:50:53 +01:00
Nicolas Méric a42dd4ea6c Implement term _ and value_ text antiquotations
ci/woodpecker/push/build Pipeline was successful Details
2022-12-22 10:55:03 +01:00
Nicolas Méric b162a24749 Comment out hack for Assumption in scholarly_paper
ci/woodpecker/push/build Pipeline was successful Details
2022-12-22 09:55:46 +01:00