37134
|
1 |
(* Title: FOL/ex/Locale_Test/Locale_Test.thy
|
|
2 |
Author: Clemens Ballarin
|
|
3 |
|
|
4 |
Test environment for the locale implementation.
|
|
5 |
*)
|
|
6 |
|
|
7 |
theory Locale_Test
|
|
8 |
imports Locale_Test1 Locale_Test2 Locale_Test3
|
|
9 |
begin
|
|
10 |
|
60770
|
11 |
text \<open>Result of theory merge with distinct but identical interpretations\<close>
|
37134
|
12 |
|
|
13 |
context mixin_thy_merge
|
|
14 |
begin
|
|
15 |
lemmas less_mixin_thy_merge1 = le.less_def
|
|
16 |
lemmas less_mixin_thy_merge2 = le'.less_def
|
|
17 |
end
|
|
18 |
|
|
19 |
lemma "gless(x, y) <-> gle(x, y) & x ~= y" (* mixin from first interpretation applied *)
|
|
20 |
by (rule le1.less_mixin_thy_merge1)
|
|
21 |
lemma "gless'(x, y) <-> gle'(x, y) & x ~= y" (* mixin from second interpretation applied *)
|
|
22 |
by (rule le1.less_mixin_thy_merge2)
|
|
23 |
|
|
24 |
end
|