Skip to content

Commit 8d2b685

Browse files
Rafael-SOWNetclaude
andcommitted
Modenov's computations as a corpus, with the book's errata as rows the library must not confirm
ModenovCorpus is a harness in the style of CasBench, over 642 computations from Modenov's Problems in Geometry (Mir, 1981) that the #2131 readings found and checked by value. There are 55 rows from Chapter I, 62 from II, 347 from III, 54 from IV and 124 from V. By kind, there are 341 identities, 200 reductions to a form the book gives, 45 equations with the book's root sets, and 56 errata. Every row's own claim is checked first, at six exact sample points from the row's domain (complex, real, positive, or the unit circle). The run fails on a row whose claim does not hold, so a mistyped row cannot pass as the library's failure. Each answer is then checked by value: - a simplification against its input; - each root substituted back, and every root the book gives found; - an erratum passes if the library neither reduces the difference to 0 nor decides the equality true. modenov-baseline.tsv records each row's verdict. The run fails when one changes either way, as CanonCheck's does, and on any wrong answer, which is never recorded. On 3abd4d9 the counts are 480 solved, 56 refused, 106 unsolved, 0 wrong, 0 error, 0 timeout, in about 85 s. Harnesses.yml runs it. Part of #2153 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f9ddf6a commit 8d2b685

9 files changed

Lines changed: 1958 additions & 10 deletions

File tree

‎.github/workflows/Harnesses.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
dotnet build -c Release Sources/Tests/Harnesses/RuleCheck
4949
dotnet build -c Release Sources/Tests/Harnesses/CanonCheck
5050
dotnet build -c Release Sources/Tests/Harnesses/Confluence
51+
dotnet build -c Release Sources/Tests/Harnesses/ModenovCorpus
5152
5253
# One step each, every one run whatever the one before did, so a red run names the harness.
5354
- name: BoundCheck
@@ -82,6 +83,12 @@ jobs:
8283
if: success() || failure()
8384
run: dotnet Sources/Tests/Harnesses/Confluence/bin/Release/net10.0/confluence.dll
8485

86+
# Modenov's computations, each row's verdict committed in modenov-baseline.tsv: fails on a
87+
# wrong answer, an erratum confirmed, or a verdict that moves either way.
88+
- name: ModenovCorpus
89+
if: success() || failure()
90+
run: dotnet Sources/Tests/Harnesses/ModenovCorpus/bin/Release/net10.0/modenovcorpus.dll
91+
8592
- name: Reports
8693
if: always()
8794
uses: actions/upload-artifact@v6

‎CLAUDE.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ nothing else is read:
1919
[`Contributing/SimplificationContract.md`](Sources/AngouriMath/Docs/Contributing/SimplificationContract.md).
2020
A rule states the assumptions under which it holds, or it is asserting there are none.
2121

22-
Ten measurement harnesses live in `Sources/Tests/Harnesses` and run in CI on every change to the
23-
library: the boundary checker, root completeness, the self-verifying solver corpus, the property
22+
Eleven measurement harnesses live in `Sources/Tests/Harnesses` and run in CI on every change to
23+
the library: the boundary checker, root completeness, the self-verifying solver corpus, the property
2424
checker, the simplification sweep, the rule-set checker, a crash harness that survives a stack
25-
overflow, the canonical-form checker, the arm-order checker, and a checker for the code samples in
26-
the wiki and on the website. Each fails on a defect, or the canonical-form and arm-order checkers on
27-
a change to the findings they list; the README says which. The rest are still in the analysis
25+
overflow, the canonical-form checker, the arm-order checker, the corpus of Modenov's computations
26+
and his book's errata, and a checker for the code samples in the wiki and on the website. Each fails
27+
on a defect, or the canonical-form and arm-order checkers and the Modenov corpus on a change to the
28+
findings they list; the README says which. The rest are still in the analysis
2829
workspace one directory up (`work/`). Run them before claiming anything is fixed.
2930

3031
There is also a *gate*, which is not a harness:

‎Sources/.editorconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
6060
[AngouriMath/Functions/TreeAnalyzer/RealValued.cs]
6161
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
6262

63+
[Tests/Harnesses/ModenovCorpus/*.cs]
64+
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
65+
6366
[Tests/UnitTests/Convenience/SpellingsAtRiskTest.cs]
6467
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
6568

‎Sources/AngouriMath/Docs/References.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ and the link. Add a work here when it is first cited.
1717
binomial identities, and induction — its examples and exercises are the rows of
1818
`QuantifierTest`, `SubsetTest`, `IndexedSetOperationTest`, `ImageAndPreImageTest`,
1919
`BinomialIdentityTest`, `InductionTest` and `ThresholdSetTest`.
20+
- **Modenov, P. S.** *Problems in Geometry.* Translated from the Russian by George Yankovsky.
21+
Mir, Moscow, 1981. <https://archive.org/details/ModenovProblemsInGeometryMir1981>.
22+
Read for [#2131](https://github.com/asc-community/AngouriMath/issues/2131): vector algebra,
23+
analytic geometry, complex numbers in plane geometry, inversion. Its computations, and the
24+
errors found in it by computing, are the rows of the `ModenovCorpus` harness
25+
([#2153](https://github.com/asc-community/AngouriMath/issues/2153)), cited by chapter, section
26+
and problem.
2027
- **Bronstein, Manuel.** *Symbolic Integration I: Transcendental Functions.* 2nd ed., Springer,
2128
2005. The Hermite reduction, the rational and logarithmic parts, and the Risch structure the
2229
integrator follows.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<!--
4+
Modenov's computations as a corpus: the identities, equations and constants of Modenov's
5+
Problems in Geometry (Mir, 1981), each run and verified by value, and the book's errors as rows
6+
the library must not confirm. Reports solved / refused / unsolved / wrong / error / timeout and
7+
fails on a wrong answer or on a change to the committed verdicts, modenov-baseline.tsv.
8+
A harness, not a test project: it is run by .github/workflows/Harnesses.yml and by hand,
9+
and `dotnet test` does not pick it up. See ../README.md.
10+
https://github.com/asc-community/AngouriMath/issues/2153
11+
-->
12+
13+
<PropertyGroup>
14+
<OutputType>Exe</OutputType>
15+
<TargetFramework>net10.0</TargetFramework>
16+
<Nullable>disable</Nullable>
17+
<LangVersion>preview</LangVersion>
18+
<AssemblyName>modenovcorpus</AssemblyName>
19+
<RootNamespace>ModenovCorpus</RootNamespace>
20+
<InvariantGlobalization>true</InvariantGlobalization>
21+
<IsPackable>false</IsPackable>
22+
</PropertyGroup>
23+
24+
<ItemGroup>
25+
<Compile Include="../Shared/*.cs" />
26+
</ItemGroup>
27+
28+
<ItemGroup>
29+
<ProjectReference Include="../../../AngouriMath/AngouriMath.csproj" />
30+
</ItemGroup>
31+
</Project>

0 commit comments

Comments
 (0)