Commit c8e5a55
proof(SafeAngle): DISCHARGE fromTo{Degrees,Radians}Roundtrip via Refl (proven#90) (#106)
Tenth "overly cautious OWED" discharge of today's [proven#90 Phase
3](#90) campaign.
## What it does
\`\`\`idris
public export
fromToDegreesRoundtrip : (d : Double) -> toDegrees (fromDegrees d) = d
fromToDegreesRoundtrip _ = Refl
public export
fromToRadiansRoundtrip : (r : Double) -> toRadians (fromRadians r) = r
fromToRadiansRoundtrip _ = Refl
\`\`\`
## Why it works
Both proofs are unit-constructor pattern matches with no Double
arithmetic:
- \`fromDegrees d = MkAngle d Degrees\` (SafeAngle.idr L108-110)
- \`toDegrees (MkAngle v Degrees) = v\` (first clause, L86)
- Composition reduces by Refl
The OWED's "Double-comparison opacity" blocker applies only to attempts
to REDUCE \`d ?= d'\` for two different Doubles. Here the value passes
through unchanged via constructor reduction; no Double arithmetic or
comparison enters the proof.
Refs #90
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8d4d45c commit c8e5a55
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
223 | 225 | | |
224 | | - | |
| 226 | + | |
225 | 227 | | |
| 228 | + | |
226 | 229 | | |
227 | | - | |
228 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
229 | 233 | | |
230 | | - | |
| 234 | + | |
231 | 235 | | |
| 236 | + | |
0 commit comments