1<!-- 2 Licensed to the Apache Software Foundation (ASF) under one 3 or more contributor license agreements. See the NOTICE file 4 distributed with this work for additional information 5 regarding copyright ownership. The ASF licenses this file 6 to you under the Apache License, Version 2.0 (the 7 "License"); you may not use this file except in compliance 8 with the License. You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, 13 software distributed under the License is distributed on an 14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 KIND, either express or implied. See the License for the 16 specific language governing permissions and limitations 17 under the License. 18--> 19 20# OpenFormula Conformance Assessment — Apache OpenOffice Calc 21 22Source-of-truth: AOO source (main/sc) and `odf_docs/ODF14-IMPLEMENTATION-DEFINED-PUBLIC.md`. Findings marked **[CONFIRMED]** have source:line evidence; **[UNVERIFIED]** require the full ODF 1.4 Part 4 normative text and/or runtime testing. 23 24## 1. Conformance-group claim 25 26**[CONFIRMED] AOO claims NO Part 4 conformance group.** 27 28- `odf_docs/ODF14-IMPLEMENTATION-DEFINED-PUBLIC.md:134` (§4, Part 4): "AOO does not claim the Part 4 evaluator groups (Small, Medium, Large), and Part 4 contains no requirement that a producer document these values; §2.4 only says applications 'should document all implementation-defined variances'. The 58 sections that contain the words are listed, with no AOO value except for §7.4. No Part 4 evaluator group is claimed, as for 1.3." 29 30Therefore **no conformance level (Small/Medium/Large) may be claimed for AOO Calc.** This audit reports implementation coverage only; it does not certify conformance. 31 32## 2. Coverage of mandatory functions by group 33 34The ODF 1.2 function baseline (used by AOO's own `test/aoo-test/data/openformula-functions.txt` and `test/odf-validate/openformula-functions.txt`, titled "OpenDocument 1.2 Part 2 chapter 6") lists 391 function names. AOO's opcode map (`main/formula/inc/formula/compiler.hrc`, last opcode id 411 = IFERROR) covers all of those. IFNA (opcode 409) and SKEWP (opcode 410) were implemented in Milestone B, IFERROR (opcode 411) on 2026-11-16. 35 36Every baseline function has an opcode, an implementation in `interpr*.cxx`, `scfuncs.src` metadata, and a `core_resource.src` name mapping (see `openformula-functions.tsv`). 37 38**[CONFIRMED 2026-11-16] IFERROR is implemented** (6f13be1d67, Excel filters ca287e3487): a jump function like IFNA that replaces any error value; the `IFERROR.*` rows of `test/odf-validate/calcval-cases14.tsv` cover it. Before that, `=IFERROR(7;5)` gave `#NAME?`. A runtime check the same day found seven more baseline names that AOO does not recognise under their ODF names: DATEDIF, FINDB, REPLACEB, SEARCHB, BINOM.DIST.RANGE, LEGACY.TDIST and ERROR.TYPE (AOO has it as ERRORTYPE). Method: AOO's ODFF function table (`FormulaOpCodeMapper`) plus its function descriptions compared with the baseline list, then each name typed into a cell. Those seven are not audited further. IFERROR is not part of the Small Group. 39 40**[CONFIRMED] IFNA and SKEWP are now implemented (Milestone B).** 41 42- IFNA: `SC_OPCODE_IFNA=409` in `compiler.hrc`, `ocIfna` in `opcode.hxx`, `ScInterpreter::ScIfna()` in `interpr1.cxx:392`, dispatch `case ocIfna` in `interpr4.cxx:3451`, `scfuncs.src:1027`, `core_resource.src:357`. 43- SKEWP: `SC_OPCODE_SKEWP=410` in `compiler.hrc`, `ocSkewP` in `opcode.hxx`, `ScInterpreter::ScSkewP()` in `interpr3.cxx`, dispatch `case ocSkewP` in `interpr4.cxx:3695`, `scfuncs.src:5300`, `core_resource.src:358`. 44 45**[UNVERIFIED]** Whether every mandatory function in each conformance group (Small/Medium/Large) is semantically correct per ODF 1.4. Presence of an opcode does not imply correct semantics (per audit mandate). 46 47## 3. Small Group 48 49AOO does not claim the Small Group. However, the Small Group audit (`openformula-small-group-audit.md`) found that all 110 required Small Group functions (§2.3.2.E) are implemented with opcodes, dispatch, and metadata. Coverage indicators: 50 51- Core IS*/logical/text/math/date/financial functions present and implemented (Milestone B added IFNA/SKEWP, though neither is Small Group). 52- All Small Group operators present (range, intersection, arithmetic, comparison, logical, concatenation, percent). 53- No Small Group functions are missing. 54- **[UNVERIFIED]** Semantic correctness per ODF 1.4 not runtime-tested; see `openformula-small-group-audit.md` for details. 55 56## 4. Medium Group 57 58**[UNVERIFIED]** Cannot certify Medium Group. AOO does not claim it. Coverage indicators: 59 60- Array functions (MMULT, MDETERM, MINVERSE, TRANSPOSE, MUNIT, SUMPRODUCT) present. 61- Statistical/distribution functions present. 62- Lookup/reference functions (VLOOKUP, HLOOKUP, INDEX, MATCH, OFFSET, INDIRECT) present. 63- SKEWP implemented in Milestone B (`SC_OPCODE_SKEWP=410`, `ScSkewP` in `interpr3.cxx`) — SKEWP is a Medium Group function (§2.3.3 Medium Group), not Small Group. 64 65## 5. Large Group 66 67**[UNVERIFIED]** Cannot certify Large Group. AOO does not claim it. Coverage indicators: 68 69- Financial functions (PV, FV, PMT, NPER, RATE, IPMT, PPMT, NPV, IRR, MIRR, etc.) present. 70- Engineering/bitwise (BITAND/BITOR/BITXOR/BITLSHIFT/BITRSHIFT) present. 71- Complex-number (IM*) functions present. 72- Database (D*) functions present. 73- IFNA implemented in Milestone B (`SC_OPCODE_IFNA=409`, `ScIfna` in `interpr1.cxx`) — IFNA is a Large Group function (§2.3.4 Large Group), not Small Group. 74 75## 6. Unsupported optional capabilities vs actual failures 76 77**[CONFIRMED]** Per odf_docs §4, AOO documents implementation-defined variances rather than claiming groups. The following are **documented implementation-defined / known-limitation items**, not necessarily conformance failures (since no group is claimed): 78 79| Item | AOO behavior | ODF 1.4 status | Source | 80|------|-------------|----------------|--------| 81| DATE pre-1583 | #VALUE! before 15 Oct 1582 | impl-defined (§7.4) | IMPLEMENTATION-DEFINED:155; KNOWN-LIMITATIONS:74 | 82| CONVERT atm | Fixed: 101325.1 Pa | Matches ODF 1.4 table | Fixed in Milestone C; KNOWN-LIMITATIONS:72 | 83| INDEX row-vector single-arg | Returns the column (legacy rule kept) | Error (ODF 1.4 removed rule) | Known deviation; the Milestone A change was reverted; KNOWN-LIMITATIONS:71 | 84| Trailing empty param (`NPER(;;)`) | error except IF | ODF 1.4 rule | KNOWN-LIMITATIONS:73 | 85| Error cells on save | written as `office:value-type="string"` | ODF 1.4 adds `error` type (no `office:error` attr) | KNOWN-LIMITATIONS producer:2 | 86 87## 7. Conformance conclusion 88 89- **Claimed conformance group: none.** AOO does not claim Small/Medium/Large. 90- **Confirmed missing functions in the Small Group: none.** All 110 Small Group functions (§2.3.2.E) are implemented. IFNA (Large Group) and SKEWP (Medium Group) were implemented in Milestone B. 91- **Confirmed semantic discrepancies vs ODF 1.4:** INDEX row-vector rule (kept as a known deviation; the Milestone A change was reverted), CONVERT `atm` (corrected in Milestone C), EASTERSUNDAY naming alias (behavior correct). 92- **Cannot certify any group** without runtime testing every mandatory requirement against the ODF 1.4 Part 4 normative text. 93 94## 8. Recommended next step for conformance 95 96Runtime-test all 110 Small Group functions against ODF 1.4 Part 4 expected results. Prioritize: COUNTA/COUNTBLANK empty-cell semantics (ODF 1.4 changed), DATE pre-1583 proleptic Gregorian, and INDEX row-vector regression risk. Until runtime verification is complete, report only coverage (see `openformula-small-group-1.4.tsv` and `openformula-small-group-audit.md`) and discrepancies (see `openformula-semantics.md`, `openformula-odf13-14-diff.md`). 97