You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task 2: extract a precise informal specification for CommandLineParseResult.Equals, the structural-equality method for the command-line parse result type.
Target: bool Equals(CommandLineParseResult? other) in src/Platform/Microsoft.Testing.Platform/CommandLine/ParseResult.cs
Spec highlights
The spec (formal-verification/specs/commandlineparseresult_equals_informal.md) documents 19 properties across 6 groups:
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch lean-squad/task2-parseresult-equals-spec-2026-04-29-87fea4e2e7e10b8d.
To fix the permissions issue, go to Settings β Actions β General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (223 of 223 lines)
From 093b455510c71eecdc05338e3edb6e005d0439f7 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com>
Date: Wed, 29 Apr 2026 01:18:13 +0000
Subject: [PATCH] =?UTF-8?q?feat(fv):=20Task=202=20=E2=80=94=20informal=20s?=
=?UTF-8?q?pec=20for=20CommandLineParseResult.Equals?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Extract a precise informal specification for CommandLineParseResult.Equals,
the structural-equality implementation for the command-line parse result type.
The spec documents:
- 19 properties across 6 groups (null-safety, extensionality, object.Equals
consistency, order-sensitivity, Empty-value behaviour, ToolName comparison)
- Algorithm walkthrough (O(nΒ·m), pure, no exceptions for null input)- Edge cases: null other, case-sensitive ToolName, order-sensitive errors/options- Lean modelling plan: Option String for nullable, List for collections
Next: Task 3 β write ArgumentArity.lean (highest priority Lean target)
π¬ Lean Squad β automated FV agent
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
.../commandlineparseresult_equals_informal.md | 184 ++++++++++++++++++
1 file changed, 184 insertions(+)
create mode 100644 formal-verification/specs/commandlineparseresult_equals_informal.md
diff --git a/formal-verification/specs/commandlineparseresult_equals_informal.md b/formal-verification/specs/commandlineparseresult_equals_informal.md
new file mode 100644
index 000000000..9deabb434
--- /dev/null+++ b/formal-verification/specs/commandlineparseresult_equals_informal.md@@ -0,0 +1,184 @@+# Informal Specification β `CommandLineParseResult.Equals`++> π¬ **Lean Squad** β auto-generated and maintained by the Lean Squad FV agent.++## Target++- **Type**: `sealed class CommandLineParseResult(string? toolName, IReadOnlyList<CommandLineParseOption> options, IReadOnlyList<string> errors) : IEquatable<CommandLineParseResult>`+- **Method**: `
... (truncated)
π¬ Lean Squad β automated formal-verification agent (run 25085790184)
Summary
Task 2: extract a precise informal specification for
CommandLineParseResult.Equals, the structural-equality method for the command-line parse result type.Target:
bool Equals(CommandLineParseResult? other)insrc/Platform/Microsoft.Testing.Platform/CommandLine/ParseResult.csSpec highlights
The spec (
formal-verification/specs/commandlineparseresult_equals_informal.md) documents 19 properties across 6 groups:object.EqualsconsistencyEmptyvalueKey design observations
--foo --barβ--bar --foo.IsOptionSetwhich usesOrdinalIgnoreCase).otherβ correctly handled at step 1.GetHashCodeis consistent: same fields β same hash code.Lean modelling plan
string?βOption StringIReadOnlyList<T>βList Tstring[]βList StringDecidableEq String==and!=operators are trivial wrappers and not modelled separatelyNext step
Task 3: write
CommandLineParseResult.leanwith theorem stubs and (ideally) proved equality laws.Note
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch
lean-squad/task2-parseresult-equals-spec-2026-04-29-87fea4e2e7e10b8d.Click here to create the pull request
To fix the permissions issue, go to Settings β Actions β General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (223 of 223 lines)