Commit Graph

5 Commits

Author SHA1 Message Date
Nicolas Méric ec7297f1d3 Update instances list term antiquotation
ci/woodpecker/push/build Pipeline failed Details
Make instances list term antiquotation compatible with
polymorphic classes
2023-09-11 09:07:10 +02:00
Nicolas Méric 93c722a41b Update malformed theory names
Theory names should use Isabelle inner syntax to allow
objects referencing using long names.
For inner syntax, see the isar-ref manual
about syntax category "longid",
which is the same as "long_ident" of outer syntax
(but not "name" or "system_name").
2023-04-27 14:53:17 +02:00
Nicolas Méric c791be2912 Add monitor tests
ci/woodpecker/push/build Pipeline was successful Details
- Add tests for monitors spanning two theories.
- Fix monitors trace update bug.
  When updating a monitor trace when we define a new instance,
  the monitor instance is already defined.
  But we can not update the instance using the update_instance function
  because  this function needs a binding, i.e. a short name,
  and then it will update or define a new instance if we want
  to update a monitor in a super theory whose name is the same as
  a monitor defined in the current theory.
  Example:

  in the super theory:

  doc_class monitor_M =
  tmM :: int
  rejects "test_monitor_A"
  accepts "test_monitor_head ~~ test_monitor_B ~~ test_monitor_C"

  open_monitor*[test_monitor_M::monitor_M]

  in the current theory:

  doc_class monitor_M =
  tmM :: int
  rejects "test_monitor_B"
  accepts "test_monitor_E ~~ test_monitor_C"

  text*[test_monitor_head2::Concept_MonitorTest1.test_monitor_head]‹›
  open_monitor*[test_monitor_M3::monitor_M]
  ...
  ==> ERROR : the instantiation of test_monitor_head2
              will define a new instance current.test_monitor_M3
              when updating the trace of super.test_monitor_M3

  Hence we use the update_instance_entry function
  which uses long names and only updates the entry.
2023-03-15 11:02:18 +01:00
Burkhart Wolff 280feb8653 improved testKit, finished Concept_Example_Low_Level invariant
ci/woodpecker/push/build Pipeline was successful Details
2023-03-04 09:57:14 +01:00
Burkhart Wolff 0f3beb846e Further advances in a more serious test setup
ci/woodpecker/push/build Pipeline was successful Details
2023-03-02 18:13:15 +01:00