source: src/LTL/LTL.ma @ 1163

Last change on this file since 1163 was 1163, checked in by mulligan, 8 years ago

even more streamlining and fixes to get things type checking

File size: 1.1 KB
Line 
1include "common/Graphs.ma".
2include "utilities/IdentifierTools.ma".
3include "LIN/JointLTLLIN.ma".
4
5definition ltl_statement ≝
6  λglobals.
7    joint_statement label globals Register
8                    Register Register Register
9                    Register (Register × Register).
10 
11definition ltl_statement_graph ≝ λglobals. graph (ltl_statement globals).
12 
13record ltl_internal_function (globals: list ident): Type[0] ≝
14{
15  ltl_if_luniverse: universe LabelTag;
16  ltl_if_runiverse: universe RegisterTag;
17  ltl_if_stacksize: nat;
18  ltl_if_graph: ltl_statement_graph globals;
19  ltl_if_entry: Σl: label. lookup ? ? ltl_if_graph l ≠ None ?;
20  ltl_if_exit: Σl: label. lookup ? ? ltl_if_graph l ≠ None ?
21}.
22
23inductive ltl_function_definition (globals: list ident): Type[0] ≝
24  | ltl_fu_internal_function: ltl_internal_function globals → ltl_function_definition globals
25  | ltl_fu_external_function: external_function → ltl_function_definition globals.
26 
27record ltl_program (globals: list (ident × nat)): Type[0] ≝
28{
29  ltl_pr_funcs: list (ident × (ltl_function_definition (map ? ? \fst globals)));
30  ltl_pr_main: option ident
31}.
Note: See TracBrowser for help on using the repository browser.