Skip to content

Commit 40a2d67

Browse files
Rafael-SOWNetclaude
andcommitted
Merge origin/master into multiples-of-one-linear-argument
Brings in #1576, which retires the macOS flake in ABareInverseFunctionByPartsTest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 parents 37cb8c1 + ff71e4b commit 40a2d67

55 files changed

Lines changed: 4317 additions & 1052 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎BREAKING-CHANGES.md‎

Lines changed: 214 additions & 0 deletions
Large diffs are not rendered by default.

‎Sources/.editorconfig‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
193193
[AngouriMath/Core/Budgets/*.cs]
194194
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
195195

196+
[Tests/UnitTests/Algebra/SolveTest/ModulusEquationTest.cs]
197+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
198+
196199
[Tests/UnitTests/Core/Budgets/*.cs]
197200
[Tests/UnitTests/Core/ExceptionMessageNamesTheExpressionTest.cs]
198201
[Tests/UnitTests/Core/UnknownDomainIsNotABugTest.cs]
@@ -240,6 +243,9 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
240243
[AngouriMath/Functions/Continuous/Solvers/EquationSolver/LinearSystemSolver.cs]
241244
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
242245

246+
[AngouriMath/Functions/Continuous/Solvers/EquationSolver/ModulusSolver.cs]
247+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
248+
243249
[Tests/UnitTests/Algebra/SolveTest/ParametricSystemTest.cs]
244250
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
245251

@@ -341,6 +347,8 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
341347

342348
[AngouriMath/Core/Entity/Continuous/Entity.Continuous.Iverson.Classes.cs]
343349
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
350+
[AngouriMath/Core/Entity/Continuous/Entity.Continuous.Aleph.Classes.cs]
351+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
344352

345353
[Tests/UnitTests/Core/ProofRecordingTest.cs]
346354
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
@@ -396,6 +404,9 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
396404
[AngouriMath/Core/Entity/Omni/Sets/SetOperators.Subset.cs]
397405
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
398406

407+
[AngouriMath/Core/Entity/Omni/Sets/Cardinality.cs]
408+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
409+
399410
[Tests/UnitTests/Core/Sets/SubsetTest.cs]
400411
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
401412

@@ -431,6 +442,9 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
431442
[AngouriMath/Functions/Algebra/Polynomials/FactorialSum.cs]
432443
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
433444

445+
[AngouriMath/Functions/Algebra/Polynomials/IversonSum.cs]
446+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
447+
434448
[Tests/UnitTests/Core/FactorialSumTest.cs]
435449
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
436450
[Tests/UnitTests/Core/ClosedFormProductTest.cs]

‎Sources/AngouriMath/Convenience/MathS.cs‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,18 @@ public static Entity VectorLength(Matrix v)
13941394
[MethodImpl(MethodImplOptions.AggressiveInlining)]
13951395
public static Entity Iverson(Entity statement) => new Iversonf(statement);
13961396

1397+
/// <summary>The aleph number <c>aleph(k)</c>, the size of an infinite set</summary>
1398+
/// <param name="index">The index, a whole number from zero</param>
1399+
/// <returns>The <see cref="Entity.Alephf"/> node</returns>
1400+
/// <remarks>
1401+
/// <c>aleph(0)</c> is the size of the whole numbers and of the rationals, and
1402+
/// <c>card(ZZ)</c> is it. The size of the reals is <c>2^aleph(0)</c>, not a named aleph:
1403+
/// which one it is, is the continuum hypothesis.
1404+
/// https://github.com/asc-community/AngouriMath/issues/1409
1405+
/// </remarks>
1406+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
1407+
public static Entity Aleph(Entity index) => new Alephf(index);
1408+
13971409
/// <summary>The error function, <c>erf(z) = 2/sqrt(pi) int_0^z e^(-t^2) dt</c></summary>
13981410
/// <param name="a">The argument, any complex number</param>
13991411
/// <returns>The <see cref="Entity.Erff"/> node</returns>

‎Sources/AngouriMath/Core/Antlr/AngouriMath.g‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,8 @@ atom returns[Entity value]
599599
/* The Iverson bracket, 1 where a statement holds and 0 where it does not: a count written as
600600
a sum. https://github.com/asc-community/AngouriMath/issues/1478 */
601601
| 'iverson(' args = function_arguments ')' { Assert("iverson", 1, $args.list.Count); $value = MathS.Iverson($args.list[0]); }
602+
/* The aleph numbers, the sizes of infinite sets. https://github.com/asc-community/AngouriMath/issues/1409 */
603+
| 'aleph(' args = function_arguments ')' { Assert("aleph", 1, $args.list.Count); $value = MathS.Aleph($args.list[0]); }
602604
/* The error functions. https://github.com/asc-community/AngouriMath/issues/1501 */
603605
| 'erf(' args = function_arguments ')' { Assert("erf", 1, $args.list.Count); $value = MathS.Erf($args.list[0]); }
604606
| 'erfc(' args = function_arguments ')' { Assert("erfc", 1, $args.list.Count); $value = MathS.Erfc($args.list[0]); }

‎Sources/AngouriMath/Core/Antlr/AngouriMath.interp‎

Lines changed: 3 additions & 1 deletion
Large diffs are not rendered by default.

‎Sources/AngouriMath/Core/Antlr/AngouriMath.tokens‎

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,15 @@ T__178=179
180180
T__179=180
181181
T__180=181
182182
T__181=182
183-
NEWLINE=183
184-
NUMBER=184
185-
SPECIALSET=185
186-
BOOLEAN=186
187-
NAN=187
188-
VARIABLE=188
189-
COMMENT=189
190-
WS=190
183+
T__182=183
184+
NEWLINE=184
185+
NUMBER=185
186+
SPECIALSET=186
187+
BOOLEAN=187
188+
NAN=188
189+
VARIABLE=189
190+
COMMENT=190
191+
WS=191
191192
'!'=1
192193
'^'=2
193194
'-'=3
@@ -355,19 +356,20 @@ WS=190
355356
'lcm('=165
356357
'binomial('=166
357358
'iverson('=167
358-
'erf('=168
359-
'erfc('=169
360-
'erfi('=170
361-
'Ei('=171
362-
'li('=172
363-
'Si('=173
364-
'Ci('=174
365-
'Shi('=175
366-
'Chi('=176
367-
'trunc('=177
368-
'conjugate('=178
369-
'domain('=179
370-
'piecewise('=180
371-
'apply('=181
372-
'lambda('=182
373-
'NaN'=187
359+
'aleph('=168
360+
'erf('=169
361+
'erfc('=170
362+
'erfi('=171
363+
'Ei('=172
364+
'li('=173
365+
'Si('=174
366+
'Ci('=175
367+
'Shi('=176
368+
'Chi('=177
369+
'trunc('=178
370+
'conjugate('=179
371+
'domain('=180
372+
'piecewise('=181
373+
'apply('=182
374+
'lambda('=183
375+
'NaN'=188

0 commit comments

Comments
 (0)