Commit a2792e6
Per [proven#107](#107)
"overly cautious OWED" pattern — Nat-literal-vs-literal variant.
\`\`\`idris
public export
maxCompressionRatioAnchor : maxCompressionRatio = 1000
maxCompressionRatioAnchor = Refl
public export
maxTotalSizeAnchor : maxTotalSize = 1073741824
maxTotalSizeAnchor = Refl
\`\`\`
Both `public export` (SafeArchive.idr L64-66 + L77-79). Idris2 compares
Nat literals via Integer representation without unary expansion — Refl
closes even for large literals like 1073741824.
OWED's "Nat literal opacity" only applies to REDUCING the named constant
to a SMALLER literal (e.g. for arithmetic). Here both sides are the SAME
literal so no reduction is needed.
Refs #90 #107
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0576c32 commit a2792e6
1 file changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
121 | 128 | | |
122 | 129 | | |
123 | 130 | | |
| |||
0 commit comments