Repository navigation
The power reduction of a squared cosine is proved, as the squared sine's is - #2177
Merged
Rafael-SOWNet merged 1 commit intoOct 27, 2026
Conversation
…e's is sin(x)^2 - (1 - cos(2x))/2 simplified to 0 and cos(x)^2 - (1 + cos(2x))/2 did not. Its candidates reach -1/2 + cos(x)^2 / 2 + sin(x)^2 / 2, which is 0, and stopped there: a rational coefficient is written as a divisor, so k sin(x)^2 + k cos(x)^2 = k (#2175) does not see cos(x)^2 / 2, and the two squares are not siblings for the switch's rules either. squared-sine-and-cosine-over-one-divisor-sum-to-its-reciprocal gathers sin(x)^2 / d and cos(x)^2 / d of one argument and one divisor and writes 1 / d: Sound, since both sides are defined exactly where d is not 0, two-sided, Collects, and with no backwards reading, as it forgets the angle. Two different divisors are left alone. The census moves by one in WritingARule.md, Saturation's remark and the tests that pin them. On 2.6.0 and on this branch, Simplify: cos(x)^2 - (1 + cos(2*x))/2 unchanged -> 0 Chain against master 856b3cb: verdicts identical, 0 moves; performance gate passed on all 19; unit suite 17,169 passed, 0 failed. RuleCheck passes, Confluence and CanonCheck match their baselines, SimpSweep 10,463/10,463. Part of #2142 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2177 +/- ##
==========================================
- Coverage 86.45% 86.45% -0.01%
==========================================
Files 295 295
Lines 64969 64995 +26
Branches 19092 19092
==========================================
+ Hits 56171 56193 +22
- Misses 4770 4775 +5
+ Partials 4028 4027 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Rafael-SOWNet
deleted the
squares-of-sine-and-cosine-over-one-divisor-are-found-anywhere
branch
October 28, 2026 10:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2142: the cosine power reduction.
The defect:
sin(x)^2 - (1 - cos(2x))/2simplified to0andcos(x)^2 - (1 + cos(2x))/2did not. Its candidates reach-1/2 + cos(x)^2 / 2 + sin(x)^2 / 2, which is0, and stopped there. A rational coefficient is written as a divisor, sok sin(x)^2 + k cos(x)^2 = k(#2175) does not seecos(x)^2 / 2, and the two squares are not siblings for the switch's rules either.The change: a third gathered rule in
PythagoreanIdentity,squared-sine-and-cosine-over-one-divisor-sum-to-its-reciprocal. It gatherssin(x)^2 / dandcos(x)^2 / dwith the same argument and the same divisor, and writes1 / d.Sound, since both sides are defined exactly wheredis not 0.Collects.The census moves by one in
WritingARule.md, in the remark inSaturation.cs, and in the tests that pin them.Simplifycos(x)^2 - (1 + cos(2*x))/20Checked:
PowerReductionTest: 5 rows.856b3cb6b: identical verdicts in all nine families, 0 moves.Still open on #2142: the tangent addition formula, half-angle, Weierstrass, sum-to-product and product-to-sum identities.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura