Skip to content

Commit 725300c

Browse files
myreenmn200
authored andcommitted
Apply a patch to lem_relation before Holmake runs
1 parent 9fe2393 commit 725300c

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

examples/l3-machine-code/arm8/asl-equiv/get-armv8.6-hol-snapshot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
git clone https://github.com/HOL-Theorem-Prover/armv8.6-asl-snapshot.git
33
cd armv8.6-asl-snapshot
44
git checkout 7b8e94ba2e2d91fe8cdfdb21b18f36c70f772cb1
5+
cd ..
6+
patch armv8.6-asl-snapshot/A64_ISA_v86A/lib/lem/lem_relationScript.sml < lem_relation_patch
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
--- armv8.6-asl-snapshot/A64_ISA_v86A/lib/lem/lem_relationScript.sml 2025-05-07 22:17:55.522283790 +0200
2+
+++ armv8.6-asl-snapshot/A64_ISA_v86A/lib/lem/lem_relation_newScript.sml 2025-05-07 22:26:39.696443565 +0200
3+
@@ -416,13 +416,13 @@
4+
5+
(*val reflexiveTransitiveClosureOn : forall 'a. SetType 'a, Eq 'a => rel 'a 'a -> set 'a -> rel 'a 'a*)
6+
val _ = Define `
7+
- ((reflexive_transitive_closure_on:('a#'a)set -> 'a set ->('a#'a)set) r s= (tc (((r) UNION ((relIdOn s))))))`;
8+
+ ((reflexive_transitive_closure_on:('a#'a)set -> 'a set ->('a#'a)set) r s= (transitive_closure (((r) UNION ((relIdOn s))))))`;
9+
10+
11+
12+
(*val reflexiveTransitiveClosure : forall 'a. SetType 'a, Eq 'a => rel 'a 'a -> rel 'a 'a*)
13+
val _ = Define `
14+
- ((reflexiveTransitiveClosure:('a#'a)set ->('a#'a)set) r= (tc (((r) UNION (relId)))))`;
15+
+ ((reflexiveTransitiveClosure:('a#'a)set ->('a#'a)set) r= (transitive_closure (((r) UNION (relId)))))`;
16+
17+
18+
19+
@@ -438,7 +438,7 @@
20+
(*val withoutTransitiveEdges: forall 'a. SetType 'a, Eq 'a => rel 'a 'a -> rel 'a 'a*)
21+
val _ = Define `
22+
((withoutTransitiveEdges:('a#'a)set ->('a#'a)set) r=
23+
- (let tc1 = (tc r) in
24+
+ (let tc1 = (transitive_closure r) in
25+
{(a, c) | a, c
26+
| ((a, c) IN r) /\
27+
(! (b :: range r).

0 commit comments

Comments
 (0)