openmath 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +45 -5
  3. data/data/binding-table-1.yml +76 -0
  4. data/data/pmquant.ocd +89 -0
  5. data/data/pmquant.sts +60 -0
  6. data/data/portable-bindings.json +1 -0
  7. data/data/replay-vectors.yml +70 -0
  8. data/lib/openmath/base/omforeign.rb +18 -4
  9. data/lib/openmath/base/omobj.rb +7 -0
  10. data/lib/openmath/binary.rb +699 -0
  11. data/lib/openmath/canonical.rb +127 -0
  12. data/lib/openmath/cd/cds_namespace.rb +13 -0
  13. data/lib/openmath/cd/group_collection.rb +160 -0
  14. data/lib/openmath/cd/group_document.rb +50 -0
  15. data/lib/openmath/cd/namespace.rb +6 -0
  16. data/lib/openmath/cd/signature_document.rb +53 -0
  17. data/lib/openmath/cd/signatures.rb +63 -0
  18. data/lib/openmath/cd.rb +10 -0
  19. data/lib/openmath/common_elements.rb +9 -0
  20. data/lib/openmath/content_mathml.rb +443 -0
  21. data/lib/openmath/content_mathml_operators.rb +51 -0
  22. data/lib/openmath/evaluation/closure.rb +11 -0
  23. data/lib/openmath/evaluation/errors.rb +30 -0
  24. data/lib/openmath/evaluation/evaluator.rb +192 -32
  25. data/lib/openmath/evaluation/interval.rb +17 -0
  26. data/lib/openmath/evaluation/operations.rb +394 -12
  27. data/lib/openmath/evaluation/portable.rb +114 -0
  28. data/lib/openmath/evaluation/signature_checker.rb +173 -0
  29. data/lib/openmath/evaluation/stochastic.rb +113 -0
  30. data/lib/openmath/evaluation/uncertain.rb +64 -0
  31. data/lib/openmath/evaluation.rb +12 -2
  32. data/lib/openmath/foreign.rb +146 -0
  33. data/lib/openmath/tagged.rb +41 -0
  34. data/lib/openmath/v2.rb +1 -1
  35. data/lib/openmath/v3.rb +1 -1
  36. data/lib/openmath/version.rb +1 -1
  37. data/lib/openmath.rb +41 -3
  38. data/schemas/PROVENANCE.md +3 -0
  39. data/schemas/omcdgroup2.rnc +33 -0
  40. data/schemas/omcdgroup2.rng +86 -0
  41. metadata +26 -2
@@ -0,0 +1,33 @@
1
+
2
+ # Schema for OpenMath CD groups
3
+
4
+ # info on the CD group itself
5
+
6
+ default namespace = "http://www.openmath.org/OpenMathCDG"
7
+
8
+ CDGroupName = element CDGroupName { xsd:NCName }
9
+ CDGroupVersion = element CDGroupVersion { xsd:nonNegativeInteger }
10
+ CDGroupRevision = element CDGroupRevision { xsd:nonNegativeInteger }
11
+ CDGroupURL = element CDGroupURL { text }
12
+ CDGroupDescription = element CDGroupDescription { text }
13
+ # info on the CDs in the group
14
+ CDComment = element CDComment { text }
15
+ CDGroupMember =
16
+ element CDGroupMember {
17
+ CDComment?, CDName, CDVersion?, CDURL?
18
+ }
19
+ CDName = element CDName { xsd:NCName }
20
+ CDVersion = element CDVersion { xsd:nonNegativeInteger }
21
+ CDURL = element CDURL { text }
22
+ # structure of the group
23
+ CDGroup =
24
+ element CDGroup {
25
+ CDGroupName,
26
+ CDGroupVersion,
27
+ CDGroupRevision?,
28
+ CDGroupURL,
29
+ CDGroupDescription,
30
+ (CDGroupMember | CDComment)*
31
+ }
32
+ start = CDGroup
33
+
@@ -0,0 +1,86 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Schema for OpenMath CD groups -->
3
+ <!-- info on the CD group itself -->
4
+ <grammar ns="http://www.openmath.org/OpenMathCDG" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
5
+ <define name="CDGroupName">
6
+ <element name="CDGroupName">
7
+ <data type="NCName"/>
8
+ </element>
9
+ </define>
10
+ <define name="CDGroupVersion">
11
+ <element name="CDGroupVersion">
12
+ <data type="nonNegativeInteger"/>
13
+ </element>
14
+ </define>
15
+ <define name="CDGroupRevision">
16
+ <element name="CDGroupRevision">
17
+ <data type="nonNegativeInteger"/>
18
+ </element>
19
+ </define>
20
+ <define name="CDGroupURL">
21
+ <element name="CDGroupURL">
22
+ <text/>
23
+ </element>
24
+ </define>
25
+ <define name="CDGroupDescription">
26
+ <element name="CDGroupDescription">
27
+ <text/>
28
+ </element>
29
+ </define>
30
+ <!-- info on the CDs in the group -->
31
+ <define name="CDComment">
32
+ <element name="CDComment">
33
+ <text/>
34
+ </element>
35
+ </define>
36
+ <define name="CDGroupMember">
37
+ <element name="CDGroupMember">
38
+ <optional>
39
+ <ref name="CDComment"/>
40
+ </optional>
41
+ <ref name="CDName"/>
42
+ <optional>
43
+ <ref name="CDVersion"/>
44
+ </optional>
45
+ <optional>
46
+ <ref name="CDURL"/>
47
+ </optional>
48
+ </element>
49
+ </define>
50
+ <define name="CDName">
51
+ <element name="CDName">
52
+ <data type="NCName"/>
53
+ </element>
54
+ </define>
55
+ <define name="CDVersion">
56
+ <element name="CDVersion">
57
+ <data type="nonNegativeInteger"/>
58
+ </element>
59
+ </define>
60
+ <define name="CDURL">
61
+ <element name="CDURL">
62
+ <text/>
63
+ </element>
64
+ </define>
65
+ <!-- structure of the group -->
66
+ <define name="CDGroup">
67
+ <element name="CDGroup">
68
+ <ref name="CDGroupName"/>
69
+ <ref name="CDGroupVersion"/>
70
+ <optional>
71
+ <ref name="CDGroupRevision"/>
72
+ </optional>
73
+ <ref name="CDGroupURL"/>
74
+ <ref name="CDGroupDescription"/>
75
+ <zeroOrMore>
76
+ <choice>
77
+ <ref name="CDGroupMember"/>
78
+ <ref name="CDComment"/>
79
+ </choice>
80
+ </zeroOrMore>
81
+ </element>
82
+ </define>
83
+ <start>
84
+ <ref name="CDGroup"/>
85
+ </start>
86
+ </grammar>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openmath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-16 00:00:00.000000000 Z
11
+ date: 2026-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model
@@ -64,6 +64,11 @@ extra_rdoc_files: []
64
64
  files:
65
65
  - LICENSE.md
66
66
  - README.adoc
67
+ - data/binding-table-1.yml
68
+ - data/pmquant.ocd
69
+ - data/pmquant.sts
70
+ - data/portable-bindings.json
71
+ - data/replay-vectors.yml
67
72
  - lib/openmath.rb
68
73
  - lib/openmath/base/common.rb
69
74
  - lib/openmath/base/compound.rb
@@ -82,23 +87,40 @@ files:
82
87
  - lib/openmath/base/oms.rb
83
88
  - lib/openmath/base/omstr.rb
84
89
  - lib/openmath/base/omv.rb
90
+ - lib/openmath/binary.rb
91
+ - lib/openmath/canonical.rb
85
92
  - lib/openmath/cd.rb
93
+ - lib/openmath/cd/cds_namespace.rb
86
94
  - lib/openmath/cd/collection.rb
87
95
  - lib/openmath/cd/configuration.rb
88
96
  - lib/openmath/cd/definition.rb
89
97
  - lib/openmath/cd/document.rb
90
98
  - lib/openmath/cd/example.rb
91
99
  - lib/openmath/cd/fmp.rb
100
+ - lib/openmath/cd/group_collection.rb
101
+ - lib/openmath/cd/group_document.rb
92
102
  - lib/openmath/cd/namespace.rb
103
+ - lib/openmath/cd/signature_document.rb
104
+ - lib/openmath/cd/signatures.rb
93
105
  - lib/openmath/cd/validation.rb
94
106
  - lib/openmath/common_elements.rb
107
+ - lib/openmath/content_mathml.rb
108
+ - lib/openmath/content_mathml_operators.rb
95
109
  - lib/openmath/evaluation.rb
96
110
  - lib/openmath/evaluation/binding_table.rb
111
+ - lib/openmath/evaluation/closure.rb
97
112
  - lib/openmath/evaluation/error_value.rb
98
113
  - lib/openmath/evaluation/errors.rb
99
114
  - lib/openmath/evaluation/evaluator.rb
115
+ - lib/openmath/evaluation/interval.rb
100
116
  - lib/openmath/evaluation/operations.rb
117
+ - lib/openmath/evaluation/portable.rb
118
+ - lib/openmath/evaluation/signature_checker.rb
119
+ - lib/openmath/evaluation/stochastic.rb
120
+ - lib/openmath/evaluation/uncertain.rb
121
+ - lib/openmath/foreign.rb
101
122
  - lib/openmath/namespace.rb
123
+ - lib/openmath/tagged.rb
102
124
  - lib/openmath/v2.rb
103
125
  - lib/openmath/v2/common_elements.rb
104
126
  - lib/openmath/v2/configuration.rb
@@ -140,6 +162,8 @@ files:
140
162
  - schemas/PROVENANCE.md
141
163
  - schemas/om3-common.rng
142
164
  - schemas/omcd2.rng
165
+ - schemas/omcdgroup2.rnc
166
+ - schemas/omcdgroup2.rng
143
167
  - schemas/openmath2.rnc
144
168
  - schemas/openmath2.rng
145
169
  - schemas/openmath3.rng