Skip to content

tests: add rec-of-subst-prop, a second variant of proj-of-subst-prop - #152

Merged
nomeata merged 1 commit into
masterfrom
joachim/rec-of-subst-prop
Aug 21, 2026
Merged

nomeata merged 1 commit into
masterfrom
joachim/rec-of-subst-prop

Conversation

@nomeata

@nomeata nomeata commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

The same Prop that carries a Type field — Issue.Owner : ∀ (h : GateP), resultSort h, where resultSort h K-reduces to Prop for a variable h and
stays stuck for the closed gateWitness : GateQ — but the field is recovered
through the Prop-only recursor, an Acc.rec large elimination and a propext
transport rather than through a projection, so a guard on projections alone does
not catch it. Proof irrelevance identifies Owner.mk gateWitness Empty with
Owner.mk gateWitness Unit, and Empty becomes inhabited; the proof uses
propext and no other axiom.

Fixed, like proj-of-subst-prop, by leanprover/lean4#14807. The exploit is by
Daniel Selsam (OpenAI), generated with OpenAI's internal models, and is the
regression test from leanprover/lean4#14847.

Co-Authored-By: Claude Opus 5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_013aD597ZqUV1XrMPdveoaKt

The same `Prop` that carries a `Type` field — `Issue.Owner : ∀ (h : GateP),
resultSort h`, where `resultSort h` K-reduces to `Prop` for a variable `h` and
stays stuck for the closed `gateWitness : GateQ` — but the field is recovered
through the `Prop`-only recursor, an `Acc.rec` large elimination and a `propext`
transport rather than through a projection, so a guard on projections alone does
not catch it.  Proof irrelevance identifies `Owner.mk gateWitness Empty` with
`Owner.mk gateWitness Unit`, and `Empty` becomes inhabited; the proof uses
`propext` and no other axiom.

Fixed, like proj-of-subst-prop, by leanprover/lean4#14807.  The exploit is by
Daniel Selsam (OpenAI), generated with OpenAI's internal models, and is the
regression test from leanprover/lean4#14847.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013aD597ZqUV1XrMPdveoaKt
@nomeata
nomeata enabled auto-merge (squash) August 21, 2026 12:34
@nomeata
nomeata merged commit 08918e4 into master Aug 21, 2026
24 checks passed
@nomeata
nomeata deleted the joachim/rec-of-subst-prop branch August 21, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant