forked from afp-mirror/Core_DOM
Intermediate step, tested with Isabelel 2020 RC4.
This commit is contained in:
parent
209a19cadb
commit
f43673491a
|
@ -32,8 +32,13 @@ text\<open>This theory is the main entry point of our formalization of the core
|
||||||
|
|
||||||
theory Core_DOM
|
theory Core_DOM
|
||||||
imports
|
imports
|
||||||
"$CORE_DOM/Core_DOM_Heap_WF"
|
"Core_DOM_Heap_WF"
|
||||||
begin
|
begin
|
||||||
|
|
||||||
|
ML
|
||||||
|
{*
|
||||||
|
map warning (Posix.ProcEnv.environ())
|
||||||
|
*}
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
|
@ -31,7 +31,7 @@ section\<open>CharacterData\<close>
|
||||||
text\<open>In this theory, we introduce the types for the CharacterData class.\<close>
|
text\<open>In this theory, we introduce the types for the CharacterData class.\<close>
|
||||||
theory CharacterDataClass
|
theory CharacterDataClass
|
||||||
imports
|
imports
|
||||||
"$CORE_DOM/ElementClass"
|
ElementClass
|
||||||
begin
|
begin
|
||||||
|
|
||||||
subsubsection\<open>CharacterData\<close>
|
subsubsection\<open>CharacterData\<close>
|
|
@ -32,7 +32,7 @@ text\<open>In this theory, we introduce the monadic method setup for the Element
|
||||||
theory ElementMonad
|
theory ElementMonad
|
||||||
imports
|
imports
|
||||||
NodeMonad
|
NodeMonad
|
||||||
"../classes/$CORE_DOM/ElementClass"
|
"ElementClass"
|
||||||
begin
|
begin
|
||||||
|
|
||||||
type_synonym ('object_ptr, 'node_ptr, 'element_ptr, 'character_data_ptr, 'document_ptr,
|
type_synonym ('object_ptr, 'node_ptr, 'element_ptr, 'character_data_ptr, 'document_ptr,
|
|
@ -34,7 +34,7 @@ DOM to what extend they preserve wellformendess.\<close>
|
||||||
|
|
||||||
theory Core_DOM_Heap_WF
|
theory Core_DOM_Heap_WF
|
||||||
imports
|
imports
|
||||||
"../Core_DOM_Functions"
|
"Core_DOM_Functions"
|
||||||
begin
|
begin
|
||||||
|
|
||||||
locale l_heap_is_wellformed\<^sub>C\<^sub>o\<^sub>r\<^sub>e\<^sub>_\<^sub>D\<^sub>O\<^sub>M_defs =
|
locale l_heap_is_wellformed\<^sub>C\<^sub>o\<^sub>r\<^sub>e\<^sub>_\<^sub>D\<^sub>O\<^sub>M_defs =
|
||||||
|
|
|
@ -31,8 +31,8 @@ section\<open>Element\<close>
|
||||||
text\<open>In this theory, we introduce the types for the Element class.\<close>
|
text\<open>In this theory, we introduce the types for the Element class.\<close>
|
||||||
theory ElementClass
|
theory ElementClass
|
||||||
imports
|
imports
|
||||||
"../NodeClass"
|
"NodeClass"
|
||||||
"../../pointers/$CORE_DOM/ShadowRootPointer"
|
"ShadowRootPointer"
|
||||||
begin
|
begin
|
||||||
text\<open>The type @{type "DOMString"} is a type synonym for @{type "string"}, define
|
text\<open>The type @{type "DOMString"} is a type synonym for @{type "string"}, define
|
||||||
in \autoref{sec:Core_DOM_Basic_Datatypes}.\<close>
|
in \autoref{sec:Core_DOM_Basic_Datatypes}.\<close>
|
|
@ -34,7 +34,7 @@ We only include them here, as they are required for future work and they cannot
|
||||||
following the object-oriented extensibility of our data model.\<close>
|
following the object-oriented extensibility of our data model.\<close>
|
||||||
theory ShadowRootPointer
|
theory ShadowRootPointer
|
||||||
imports
|
imports
|
||||||
"../DocumentPointer"
|
"DocumentPointer"
|
||||||
begin
|
begin
|
||||||
|
|
||||||
datatype 'shadow_root_ptr shadow_root_ptr = Ref (the_ref: ref) | Ext 'shadow_root_ptr
|
datatype 'shadow_root_ptr shadow_root_ptr = Ref (the_ref: ref) | Ext 'shadow_root_ptr
|
Reference in New Issue