You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7aaf21d
Browse filesBrowse the repository at this point in the historyBrowse files
An integer range is listed, and a family of sets has a union and an intersection (#1435)
Item 4 of the reference's docket (#1409), second half. ZZ /\ [1; 10] lists its members: an
integer set cut by a numeric interval with at most 4096 members in it is the finite set of
them -- the reference's [n] = {1, ..., n} is ZZ+ /\ [1; n], and its indexed unions run over
such ranges; the reals and the complex numbers cut by an interval are the interval, and the
rationals stay as written. union(A_k, k in I) and intersection(A_k, k in I), the ⋃ and ⋂
over a family, are Entity.Set.IndexedUnionf and IndexedIntersectionf: binders like sum,
with the capture-avoiding substitution a quantifier has, folded to the binary operators
over a listed index set, and over any other an object whose membership goes through the
quantifiers -- x in union(A_n, n in I) is exists n in I : x in A_n -- so that the
reference's limit cases read at their members: 0 in intersection([0; 1/n), n in ZZ+) is
True and 0.1 is not, 1 is in every [n] and 2 is not. complement(A, U) is U \ A, a
complement being relative to a universe.
The reference's rows are the tests (IndexedSetOperationTest): Ex 3.6.1, Ex 3.6.6 over two
index sets, Ex 3.5.11, Problem 3.11.20, §3.9.5 Try 8. An index is k or n where the book
writes i, which is the imaginary unit here.
#1409
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: BREAKING-CHANGES.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -621,6 +621,25 @@ too ([#1409](https://github.com/asc-community/AngouriMath/issues/1409)). `subset
621
621
|`{1, 3} in powerset(ZZ)`|`UnrecognizedFunctionParseException`|`True`|
622
622
|`card({1, {}})`|`#{ 1, { } }` — left as written |`2`|
623
623
624
+
### An integer range is listed, and a family of sets has a union and an intersection
625
+
626
+
`ZZ /\ [1; 10]` lists its members now — an integer set cut by a numeric interval with at most
627
+
4096 members in it is the finite set of them, the `[n] = {1, …, n}` of combinatorics being
628
+
`ZZ+ /\ [1; n]`; the reals and the complex numbers cut by an interval are the interval, and the
629
+
rationals stay as written. `union(A_k, k in I)` and `intersection(A_k, k in I)` are
630
+
`Entity.Set.IndexedUnionf` and `Entity.Set.IndexedIntersectionf`, binders like `sum`: folded over
631
+
a listed index set, and over any other an object whose membership is decided by the quantifiers
632
+
(`0 in intersection([0; 1/n), n in ZZ+)` is `True`). `complement(A, U)` is `U \ A`
633
+
([#1409](https://github.com/asc-community/AngouriMath/issues/1409)). `union`, `intersection` and
634
+
`complement` are keywords now, and were names.
635
+
636
+
| Input | Was (2.5.0) | Now |
637
+
|---|---|---|
638
+
|`ZZ /\ [1; 10]`|`ZZ /\ [1; 10]` — left as written |`{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }`|
639
+
|`RR /\ [0; 1]`|`RR /\ [0; 1]` — left as written |`[0; 1]`|
640
+
|`union({k, 2 k}, k in {1, 2, 3})`|`UnhandledParseException` — `union` was a name, and `union(` a juxtaposition that does not parse |`{ 1, 2, 4, 3, 6 }`|
641
+
|`0.1 in intersection([0; 1/n), n in ZZ+)`|`UnhandledParseException`|`False`|
| 'union(' args = function_arguments ')'{Assert("union", 2, $args.list.Count); $value = $args.list[1] is Entity.Set.Inf { Element: Variable } unionRange ? MathS.Sets.IndexedUnion($args.list[0], unionRange.Element, unionRange.SupSet) : throw new InvalidArgumentParseException("union expects its second argument to say which name ranges over which set, as in union(A_i, i in I)"); }
554
+
| 'intersection(' args = function_arguments ')'{Assert("intersection", 2, $args.list.Count); $value = $args.list[1] is Entity.Set.Inf { Element: Variable } intersectionRange ? MathS.Sets.IndexedIntersection($args.list[0], intersectionRange.Element, intersectionRange.SupSet) : throw new InvalidArgumentParseException("intersection expects its second argument to say which name ranges over which set, as in intersection(A_i, i in I)"); }
0 commit comments