Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/c296-regular-point-chart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: C296 regular-point chart

on:
pull_request:
paths:
- "frontiers/regular_point_chart_20261020/**"
- ".github/workflows/c296-regular-point-chart.yml"
Comment thread
d6g8k5htny-coder marked this conversation as resolved.
Resolved
workflow_dispatch:

permissions:
contents: read

jobs:
regular-point-chart:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
fetch-depth: 0
- uses: leanprover/lean-action@f061402b660e0c34644504b324e830f2991d4865
with:
auto-config: 'false'
build: 'false'
test: 'false'
lint: 'false'
use-mathlib-cache: 'true'
use-github-cache: 'false'
lake-package-directory: frontiers/regular_point_chart_20261020
- name: Build and kernel-check the exact C296 interface
working-directory: frontiers/regular_point_chart_20261020
run: |
set -euo pipefail
lean --version
lake build RegularPointChart RegularPointChartInterface
lake env lean -E warning RegularPointChart.lean
lake env lean -E warning RegularPointChartInterface.lean
lake env leanchecker RegularPointChart
lake env leanchecker RegularPointChartInterface
lake env lean RegularPointChartAxiomAudit.lean
Comment thread
d6g8k5htny-coder marked this conversation as resolved.
Resolved

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Enforce the allowed axioms in the C296 audit

If a chart declaration acquires a dependency on a custom axiom, this workflow still succeeds: RegularPointChartAxiomAudit.lean contains only informational #print axioms commands, their output is not validated, and kernel checking accepts explicitly declared axioms. Consequently, the new check does not enforce the repository's required axiom gate. Reject any transitive axiom outside propext, Classical.choice, and Quot.sound, using an executable assertion as in C294's CriticalLevelAxiomAudit.lean or output validation as in formal/gate.py.

AGENTS.md reference: AGENTS.md:L38-L38

Useful? React with 👍 / 👎.

- name: Mutation-test the negative diagnostic classifier
working-directory: frontiers/regular_point_chart_20261020
run: |
set -euo pipefail
bash scripts/test_negative_classifier.sh
- name: Require omission of noncriticality to be rejected
working-directory: frontiers/regular_point_chart_20261020
run: |
set -euo pipefail
set +e
lake env lean WithoutNoncriticality.lean > negative.log 2>&1
status=$?
set -e
cat negative.log
bash scripts/classify_negative.sh negative.log "$status"
111 changes: 111 additions & 0 deletions docs/superpowers/plans/2026-10-20-c296-regular-point-chart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# C296 Regular-Point Chart Implementation Plan

> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.

**Goal:** Kernel-check the literal regular scalar chart at a noncritical point of the project space `E d`, without weakening C294's closed-superlevel local-path-connectivity premise.

**Architecture:** Add one isolated Lean package based on Math- PR #487 head `7af365e8c8db1ae0275d4efe08a70a678f153ca2`. The package copies C294's exact `Lifetime.lean` input, proves only the strict-derivative/surjective-derivative chart interface, and carries positive, negative, and axiom-audit modules. A packet-specific GitHub workflow provides red-then-green hosted execution because the local runtime cannot read `/proc/<pid>/exe` in this environment.

**Tech Stack:** Lean 4.34.1; Mathlib `d13f23b723b8a846827a245b89c10fc7d3f11612`; GitHub Actions `leanprover/lean-action@f061402b660e0c34644504b324e830f2991d4865`.

**Spec:** `frontiers/critical_level_attainment_20261020/SCOPE.md`, narrowed by C295 finding `Math-#487/6289066726` and C296 pickup `Math-#487/6289277782`.

## Global Constraints

- Preserve every existing C294/C293 byte; the new packet is additive.
- Scientific effect remains NONE; no formal or scientific registry promotion.
- Do not prove or suggest a critical-point Morse chart, quotient transport, half-space relative LPC, or removal of C294's `LocallyPathConnectedSpace` premise.
- Pin Lean 4.34.1, Mathlib `d13f23b723b8a846827a245b89c10fc7d3f11612`, and every hosted source head used as evidence.
- Treat the local `/proc/<pid>/exe` denial as a stop for local Lean execution; do not patch or bypass it.

## Review Focus

- Noncriticality must be used to prove the scalar derivative is nonzero; the negative module omits exactly that premise.
- Continuous-linear-map versus linear-map coercion must preserve the exact derivative and range statement.
- First-coordinate equality is global as a function equality, while inverse/homeomorphism claims remain restricted to source/target.
- The base point and `(g x, 0)` must be proved members of the chart's source and target.
- No theorem may silently imply closed-superlevel local path connectivity at critical points.

---

### Task 1: Hosted red test for the missing project chart

**Files:**
- Create: `frontiers/regular_point_chart_20261020/lean-toolchain`
- Create: `frontiers/regular_point_chart_20261020/lakefile.toml`
- Create: `frontiers/regular_point_chart_20261020/Lifetime.lean`
- Create: `frontiers/regular_point_chart_20261020/RegularPointChart.lean`
- Test: `frontiers/regular_point_chart_20261020/RegularPointChartInterface.lean`
- Create: `.github/workflows/c296-regular-point-chart.yml`

**Interfaces:**
- Consumes: C294 `UniversalLaw.Spec.Lifetime.E`, `IsSmooth`, and `IsCriticalPoint` from the exact copied `Lifetime.lean`.
- Produces: a failing interface test naming the intended `regularPointChart` declaration and its source/target identities.

- [x] **Step 1: Write the failing interface test**

The test imports `RegularPointChart` and invokes the wished-for chart plus first-coordinate, self, source-membership, and target-membership declarations at arbitrary `d`, `g`, and `x` under smoothness and noncriticality.

- [x] **Step 2: Run the hosted test to verify it fails**

Run: open a draft PR from `codex/c296-regular-point-chart-20261020` to `codex/c294-critical-level-attainment-20261020` and wait for `c296-regular-point-chart`.

Expected: FAIL at the exact red commit because `regularPointChart` (or its first intended helper) is unknown; setup/toolchain/source errors do not count as RED.

- [x] **Step 3: Commit the red harness**

Commit message: `test: pin C296 regular-point chart interface`

### Task 2: Minimal literal chart implementation

**Files:**
- Modify: `frontiers/regular_point_chart_20261020/RegularPointChart.lean`
- Test: `frontiers/regular_point_chart_20261020/RegularPointChartInterface.lean`
- Test: `frontiers/regular_point_chart_20261020/WithoutNoncriticality.lean`
- Test: `frontiers/regular_point_chart_20261020/RegularPointChartAxiomAudit.lean`

**Interfaces:**
- Consumes: `(hg 1).hasStrictFDerivAt`, `Module.Dual.range_eq_top_of_ne_zero`, and `HasStrictFDerivAt.implicitToOpenPartialHomeomorph` at the pinned Mathlib revision.
- Produces: `regularPointDerivative_range_eq_top`, `regularPointHasStrictFDerivAt`, `regularPointChart`, `regularPointChart_fst`, `regularPointChart_self`, `mem_regularPointChart_source`, and `mem_regularPointChart_target`.

- [x] **Step 1: Implement only the derivative and chart declarations required by the failing interface test**

Use `fderiv ℝ g x` literally; derive strict differentiability from `IsSmooth`; convert noncriticality to a nonzero continuous linear functional, then to full scalar range; invoke the existing Mathlib chart.

- [x] **Step 2: Add the omitted-noncriticality interface rejection**

The negative module must fail by leaving the required `¬ IsCriticalPoint d g x` argument unsupplied. The workflow must require a nonzero exit and a diagnostic mentioning `IsCriticalPoint`; timeout/import/syntax/unknown-production-identifier failures do not count.

- [x] **Step 3: Run hosted tests to verify they pass**

Expected: positive modules build with warnings as errors; the negative module is rejected for the intended missing premise; named-module `leanchecker` and the axiom audit succeed.

- [x] **Step 4: Commit the minimal implementation**

Commit message: `feat: instantiate the regular scalar chart`

### Task 3: Freeze source identities and hand off review

**Files:**
- Create: `frontiers/regular_point_chart_20261020/README.md`
- Create: `frontiers/regular_point_chart_20261020/SCOPE.md`
- Create: `frontiers/regular_point_chart_20261020/SOURCE_SHA256SUMS`
- Create: `frontiers/regular_point_chart_20261020/RESULTS.md`

**Interfaces:**
- Consumes: exact green head, workflow run/job identities, test streams, and Git blob/SHA-256 identities.
- Produces: a source-bound reviewable packet and explicit release record; no acceptance or integration claim.

- [x] **Step 1: Record exact source, toolchain, positive/negative, axiom, and hosted-run identities**

- [ ] **Step 2: Re-run the full hosted workflow at the frozen documentation head**

Expected: all C296 jobs green at the new exact head; previous green evidence is stale if source bytes changed.

- [ ] **Step 3: Commit documentation and request bounded nonauthor review**

Commit message: `docs: freeze C296 execution scope`

- [ ] **Step 4: Post result/release on Math-#487 and pointer on main#419**

The release must state exact head, source blobs/digests, run IDs, negative-control reason, axiom scope, local platform denial, and all exclusions.
35 changes: 35 additions & 0 deletions frontiers/regular_point_chart_20261020/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# C296: regular scalar chart at a noncritical point

C296 instantiates Mathlib's finite-dimensional implicit-function chart for the
literal C294 project space `E d` and a smooth scalar function `g : E d → ℝ` at
a point `x` satisfying `¬ IsCriticalPoint d g x`.

The production module proves that the derivative has full scalar range, derives
the strict derivative from the project's `IsSmooth` predicate, and exposes an
`OpenPartialHomeomorph (E d) (ℝ × (fderiv ℝ g x).ker)`. Its first coordinate is
exactly `g`; it sends `x` to `(g x, 0)`; and those points are members of the
chart's source and target.

This is a local regular-point tool only. It does not construct a chart at a
critical point, prove a Morse normal form, transport local path connectivity
through a quotient or half-space, or remove C294's explicit
`LocallyPathConnectedSpace` premise. Scientific effect is **NONE**.

## Reproduction

From this directory, with the pinned toolchain available:

```text
lake build RegularPointChart RegularPointChartInterface
lake env lean -E warning RegularPointChart.lean
lake env lean -E warning RegularPointChartInterface.lean
lake env leanchecker RegularPointChart
lake env leanchecker RegularPointChartInterface
lake env lean RegularPointChartAxiomAudit.lean
```

`WithoutNoncriticality.lean` is a negative fixture and must fail with a type
mismatch requiring `¬ IsCriticalPoint`. See `RESULTS.md` for hosted identities
and `SCOPE.md` for the exact boundary.

[Owner mandate](https://github.com/d6g8k5htny-coder/main/blob/b665307520948308a53d190d7341bf301df3b3a2/governance/OWNER_MANDATE_20261015.md) · [Standing delegation](https://github.com/d6g8k5htny-coder/main/blob/main/governance/OP-AUTONOMY-20260923-v2.1.md)
49 changes: 49 additions & 0 deletions frontiers/regular_point_chart_20261020/RESULTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# C296 hosted results

## Source identities

- base and PR target: Math- PR #487 head
`7af365e8c8db1ae0275d4efe08a70a678f153ca2`;
- implementation GREEN head: `4aaddf42c474eee783f08b0350e705cea2cff181`;
- production Git blob: `77a75a4611040973ad355aff40555a808f1816e7`;
- positive-interface blob: `4885f7a0e8fdb7f1d3ab308991b043c438dbb8ef`;
- negative-control blob: `dd97a6073da0ea9bf87a19cb910daea2b46ca365`;
- axiom-audit blob: `2d77d76781209655c1a02478f5dccc827d573a78`;
- exact external C294 `Lifetime.lean` blob:
`f2508f7f2e3fd42f22f5aa52bc5ead5ff9e73b9a`;
- Lean `v4.34.1`, commit `5045d0056413266e57c625dcd7c365b10e377c52`;
- Mathlib `d13f23b723b8a846827a245b89c10fc7d3f11612`;
- workflow action `leanprover/lean-action@f061402b660e0c34644504b324e830f2991d4865`.

`SOURCE_SHA256SUMS` binds the complete implementation, interface/control,
toolchain/dependency, workflow, and consumed C294 source bytes.

## Verified execution

GitHub Actions run
[39415169578](https://github.com/d6g8k5htny-coder/Math-/actions/runs/39415169578),
job `118602321184`, succeeded at the implementation GREEN head.

- `Lifetime`, `RegularPointChart`, and `RegularPointChartInterface` built;
- production and interface passed Lean `-E warning` rechecks;
- standalone `leanchecker` passed for both named new modules;
- all seven audited declarations reported only `propext`,
`Classical.choice`, and `Quot.sound`;
- the omitted-noncriticality fixture exited nonzero with the intended type
mismatch: `regularPointChart hg` still required
`¬ IsCriticalPoint d g ...`;
- the exact GREEN-head repository downstream hard gate passed in run
[39415169606](https://github.com/d6g8k5htny-coder/Math-/actions/runs/39415169606).

Earlier runs preserve setup and harness failures rather than suppressing them:
`39412669016`, `39413381712`, `39413746410`, `39414329053`, and
`39414753347`. The valid RED is run `39412930269`, job `118594890340`, which
built the exact consumed source and rejected the missing chart declarations.

## Limits

Local Lean execution was unavailable because the downloaded Lean 4.34.1 runtime
could not read `/proc/<pid>/exe` in this environment. No runtime patch or bypass
was attempted. Hosted checks are execution evidence, not scientific acceptance,
external independent replay, correspondence review, or authorization to merge.
Scientific effect remains **NONE**.
64 changes: 64 additions & 0 deletions frontiers/regular_point_chart_20261020/RegularPointChart.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import Lifetime

/-!
# Regular scalar chart at a noncritical point

The construction is the finite-dimensional scalar specialization of Mathlib's
strict implicit-function chart. It uses noncriticality only to prove that the
derivative has full range.
-/

namespace UniversalLaw.Spec.Lifetime

variable {d : ℕ} {g : E d → ℝ} {x : E d}

/-- At a noncritical point, the scalar derivative has full range. -/
theorem regularPointDerivative_range_eq_top (hx : ¬ IsCriticalPoint d g x) :
(fderiv ℝ g x).range = ⊤ := by
have hne : (fderiv ℝ g x).toLinearMap ≠ 0 := by
intro hzero
apply hx
unfold IsCriticalPoint
ext y
have hy := LinearMap.congr_fun hzero y
simpa using hy
exact Module.Dual.range_eq_top_of_ne_zero hne

/-- Smoothness supplies the strict derivative used by the chart. -/
theorem regularPointHasStrictFDerivAt (hg : IsSmooth d g) :
HasStrictFDerivAt g (fderiv ℝ g x) x :=
(hg 1).hasStrictFDerivAt (by norm_num)

/-- The literal local scalar chart at a noncritical point. -/
noncomputable def regularPointChart (hg : IsSmooth d g) (hx : ¬ IsCriticalPoint d g x) :
OpenPartialHomeomorph (E d) (ℝ × (fderiv ℝ g x).ker) :=
(regularPointHasStrictFDerivAt hg).implicitToOpenPartialHomeomorph
g (fderiv ℝ g x) (regularPointDerivative_range_eq_top hx)

/-- The chart's first coordinate is exactly `g`, globally as a function equality. -/
@[simp]
theorem regularPointChart_fst (hg : IsSmooth d g) (hx : ¬ IsCriticalPoint d g x) (y : E d) :
(regularPointChart hg hx y).1 = g y := by
exact HasStrictFDerivAt.implicitToOpenPartialHomeomorph_fst
(regularPointHasStrictFDerivAt hg) (regularPointDerivative_range_eq_top hx) y

/-- The chart sends the base point to `(g x, 0)`. -/
@[simp]
theorem regularPointChart_self (hg : IsSmooth d g) (hx : ¬ IsCriticalPoint d g x) :
regularPointChart hg hx x = (g x, 0) := by
exact HasStrictFDerivAt.implicitToOpenPartialHomeomorph_self
(regularPointHasStrictFDerivAt hg) (regularPointDerivative_range_eq_top hx)

/-- The base point belongs to the chart source. -/
theorem mem_regularPointChart_source (hg : IsSmooth d g) (hx : ¬ IsCriticalPoint d g x) :
x ∈ (regularPointChart hg hx).source := by
exact HasStrictFDerivAt.mem_implicitToOpenPartialHomeomorph_source
(regularPointHasStrictFDerivAt hg) (regularPointDerivative_range_eq_top hx)

/-- The image base point belongs to the chart target. -/
theorem mem_regularPointChart_target (hg : IsSmooth d g) (hx : ¬ IsCriticalPoint d g x) :
(g x, 0) ∈ (regularPointChart hg hx).target := by
exact HasStrictFDerivAt.mem_implicitToOpenPartialHomeomorph_target
(regularPointHasStrictFDerivAt hg) (regularPointDerivative_range_eq_top hx)

end UniversalLaw.Spec.Lifetime
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import RegularPointChart

#print axioms UniversalLaw.Spec.Lifetime.regularPointDerivative_range_eq_top
#print axioms UniversalLaw.Spec.Lifetime.regularPointHasStrictFDerivAt
#print axioms UniversalLaw.Spec.Lifetime.regularPointChart
#print axioms UniversalLaw.Spec.Lifetime.regularPointChart_fst
#print axioms UniversalLaw.Spec.Lifetime.regularPointChart_self
#print axioms UniversalLaw.Spec.Lifetime.mem_regularPointChart_source
#print axioms UniversalLaw.Spec.Lifetime.mem_regularPointChart_target
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import RegularPointChart

open scoped Topology

namespace UniversalLaw.Spec.Lifetime

noncomputable section

variable {d : ℕ} {g : E d → ℝ} {x : E d}

example (hg : IsSmooth d g) (hx : ¬ IsCriticalPoint d g x) :
OpenPartialHomeomorph (E d) (ℝ × (fderiv ℝ g x).ker) :=
regularPointChart hg hx

example (hg : IsSmooth d g) (hx : ¬ IsCriticalPoint d g x) (y : E d) :
(regularPointChart hg hx y).1 = g y :=
regularPointChart_fst hg hx y

example (hg : IsSmooth d g) (hx : ¬ IsCriticalPoint d g x) :
regularPointChart hg hx x = (g x, 0) :=
regularPointChart_self hg hx

example (hg : IsSmooth d g) (hx : ¬ IsCriticalPoint d g x) :
x ∈ (regularPointChart hg hx).source :=
mem_regularPointChart_source hg hx

example (hg : IsSmooth d g) (hx : ¬ IsCriticalPoint d g x) :
(g x, 0) ∈ (regularPointChart hg hx).target :=
mem_regularPointChart_target hg hx

end

end UniversalLaw.Spec.Lifetime
Loading
Loading