Skip to content

Commit 7e4e5c9

Browse files
committed
Changes for Isabelle 2025
1 parent cd177fd commit 7e4e5c9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Dataspace.ML

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct
2020
val chfixes = map (fn (n, t) => (Binding.name n, SOME (prismT t achanT), NoSyn)) chds
2121
val wbs = map (mk_wb_prism o free) chns;
2222
val simp = Attrib.check_src ctx (Token.make_src ("simp", Position.none) [])
23-
val imps = map (fn e => Locale.check thy (e, Position.none)) exts
23+
val imps = map (fn e => Locale.check_global thy (e, Position.none)) exts
2424
(* List of prisms imported *)
2525
val ilnsls = map (filter (isPrismT o snd) o map fst o Locale.params_of thy) imps
2626
(* Codependence axioms from imports *)
@@ -45,7 +45,7 @@ struct
4545
let
4646
open Lens_Lib;
4747
open Syntax;
48-
val imps = map (fn e => Locale.check thy (e, Position.none)) exts
48+
val imps = map (fn e => Locale.check_global thy (e, Position.none)) exts
4949
(* When extending existing dataspaces, we instantiate their respective state and channel
5050
types to avoid ambiguity (via a locale "where" clause) *)
5151
val pinsts = Expression.Named

Lens_Statespace.ML

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct
1717
val vfixes = map (fn (n, t) => (Binding.name n, SOME (lensT t astateT), NoSyn)) vds
1818
val vwbs = map (mk_vwb_lens o free) vns;
1919
val simp = Attrib.check_src ctx (Token.make_src ("simp", Position.none) [])
20-
val imps = map (fn e => Locale.check thy (e, Position.none)) exts
20+
val imps = map (fn e => Locale.check_global thy (e, Position.none)) exts
2121
(* List of lenses imported *)
2222
val ilnsls = map (filter (isLensT o snd) o map fst o Locale.params_of thy) imps
2323
(* Independence axioms from imports *)
@@ -35,13 +35,12 @@ struct
3535
]
3636
end
3737

38-
3938
(* Compile a state space from a given state space name and list of variable declarations *)
4039
fun compile_statespace ssn vds exts thy =
4140
let
4241
open Lens_Lib;
4342
open Syntax;
44-
val imps = map (fn e => Locale.check thy (e, Position.none)) exts
43+
val imps = map (fn e => Locale.check_global thy (e, Position.none)) exts
4544
val locexs = map (fn i => (i, (("", false), (Expression.Positional [], [])))) imps
4645
in
4746
(Local_Theory.exit_global o snd o

0 commit comments

Comments
 (0)