Commit Graph

6 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 b8282b771e Cleanup
ci/woodpecker/push/build Pipeline was successful Details
2023-05-12 20:04:44 +02:00
Nicolas Méric 4bd31be71d Remove obsolete termrepr term anti-quotation
ci/woodpecker/push/build Pipeline was successful Details
- Also some clean-up
2023-03-20 16:50:23 +01:00
Nicolas Méric 6a6259bf29 Add very deep interpretation
ci/woodpecker/push/build Pipeline was successful Details
Use metalogic to generate meta term anti-quotations

The idea is for the Very_Deep_Interpretation
to source the shallow material,
and then update the checking and elaboration functions
of the term anti-quotations.
To achieve this, the mechanism of removing and reading the notations
(mixfixes) of the term-antiquotations, after the metalogic
is sourced, is used.

Example:

With shallow:

datatype "typ" = Isabelle_DOF_typ string  ("@{typ _}")

Generate a datatype whose Constructor Isabelle_DOF_typ has
the notation @{typ ...}.

You get:

find_consts name:"Isabelle_DOF_typ"

find_consts
  name: "Isabelle_DOF_typ"

found 1 constant(s):
  Shallow_Interpretation.typ.Isabelle_DOF_typ :: "char list ⇒ typ"

With Deep:

no_notation "Isabelle_DOF_typ" ("@{typ _}")

consts Isabelle_DOF_typ :: "string ⇒ typ" ("@{typ _}")

The notation is removed and then added to the new Isabelle_DOF_typ constant.

You get:

find_consts name:"Isabelle_DOF_typ"

find_consts
  name: "Isabelle_DOF_typ"

found 2 constant(s):
  Deep_Interpretation.Isabelle_DOF_typ :: "char list ⇒ Core.typ"
  Shallow_Interpretation.typ.Isabelle_DOF_typ :: "char list ⇒ Shallow_Interpretation.typ"

But only the Deep_Interpretation constant has the notation (mixfix).

Then new interpretation of term anti-quotations is available
for the user.
2023-02-24 10:44:47 +01:00
Achim D. Brucker e4a8ad4227 Exclude proof session from default build. 2023-02-19 20:51:28 +00:00
Achim D. Brucker 43ccaf43f7 Refactoring of session setup. 2023-02-19 13:06:00 +00:00