Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Constraint Orientation in CompareTypes (Theorem 10) and Bipartiteness of Call-Site Constraint Graphs (Theorems 11 & 12)

Disproved
NishtAbel2024.theorems_10_11_and_12

by kmehltretter82 · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

agdacopatternssize-change-terminationsized-typesstrong-normalizationtermination-checkingtype-theory

Theorems 10, 11, and 12 (Section 6.3, pp. 52–56): (1) every constraint mentioning a polarized size variable i in CompareTypes Φ Δ ι π A C Cs is oriented according to a ≤^{π π' π''} i; (2) InferTerm and CheckTerm preserve fixpoint polarity invariants and emit no constraint from a flexible variable to a tracked variable i ∈ X; and (3) across any encoded copattern clause body, no constraint has a flexible variable on the LHS and a rigid variable on the RHS.

Superseded. This is the first formalization of Theorems 10–12 (pp. 52–56) of the thesis. It is refuted through its Theorem 11 conjunct by the disproof 66d9f635-be98-4efa-83f1-846d677c4882. A positive rigid size variable iii occurs twice in the type νi{d0:μi{}}\nu^i\{d_0 : \mu^i\{\}\}νi{d0​:μi{}} of a variable xxx, inside a least fixpoint and also at the outer greatest fixpoint. The statement's hypotheses check only one occurrence and accept this. Inferring the projection x.d0x.d_0x.d0​ then emits a constraint j<ij < ij<i with a fresh flexible variable jjj, which Theorem 11 forbids. The thesis requires that, for positive polarity, all occurrences of a rigid variable lie in least fixpoints (§6.3.4), so this is a missing hypothesis, not a counterexample to the thesis. Corrected statement: NishtAbel2024V2.theorems_10_11_and_12. It concerns the instrumented judgments GuardedCompareTypes, SafeInferTerm and SafeCheckTerm, which track size occurrences explicitly.

Preamble
import Definitions.Def_NishtAbel2024_Syntax
import Definitions.Def_NishtAbel2024_Inference
Formal statement
namespace NishtAbel2024

/-- Theorem 10 (Polarities in type comparison, pp. 52–53),
Theorem 11 (Nature of rigid variables, pp. 53–54), and
Theorem 12 (Rigid variables in constraints, pp. 55–56):
1. (**Theorem 10**) Under `FlexPolHygiene`, if `(i, π') ∈ Φ` (`π' ∈ {+, −}`) occurs in `C` only
   with polarity `π'' ∈ {+, −}` (and not in `A`), then in `Φ; Δ; ι ⊢_{SCT} A ≤^π C ⇒ Cs`, every
   constraint in `Cs` mentioning `i` has the polarized form `a ≤^{π π' π''} i`.
2. (**Theorem 11**) Under `RigidVarHypotheses π X Φ₀ Γ Δ A`, neither call-site inference nor
   call-site checking generates a constraint `(j R i) ∈ Cs` with flexible `j ∈ Φ \ X` and rigid
   `i ∈ X`; in inference mode, every `i ∈ X` either occurs in the inferred type `C` with polarity
   `π` or does not occur in `C`.
3. (**Theorem 12**) For any clause body checked after signature encoding and copattern-spine
   matching, no constraint `(k R j) ∈ Cs` has a flexible variable `k ∈ Φ \ (Ψ₁ ++ Ψ₂)` on the LHS
   and a rigid variable `j ∈ Ψ₁ ++ Ψ₂` on the RHS. -/
theorem theorems_10_11_and_12 :
    (∀ (Φ : FlexVars) (Δ : KindingCtx) (ι : SKind) (π π' π'' : Polarity)
       (A C : TypeExpr) (Cs : List SizeConstraint) (i : SizeVar),
      FlexPolHygiene Φ Δ A C →
      Φ.lookupPol i = some π' →
      (π' = .pos ∨ π' = .neg) →
      (π'' = .pos ∨ π'' = .neg) →
      ¬ SizeOccursIn i A →
      (∀ fk π₀, SizeOccursFixPol Δ fk i π₀ C →
        π₀ = π'' ∧ ((fk = .mu ∧ π' = .pos) ∨ (fk = .nu ∧ π' = .neg))) →
      CompareTypes Φ Δ ι π A C Cs →
      ∀ c ∈ Cs, c.mentions i = true →
        ∃ a : SizeExp,
          c ∈ SizeConstraint.ofPol (Polarity.comp (Polarity.comp π π') π'') a (.var i 0)) ∧
    (∀ (sig : GlobalSig) (Ξ : MutualBlock) (π : Polarity) (X : List SizeVar)
       (Φ₀ Φ : FlexVars) (Γ : TermCtx) (Δ : KindingCtx) (A C : TypeExpr)
       (t t' : Term) (Cs : List SizeConstraint) (T : List SizeVar),
      RigidVarHypotheses π X Φ₀ Γ Δ A →
      ((InferTerm sig Ξ Φ₀ Γ Δ t C Φ Cs T t' →
          (∀ i ∈ X, ∀ j ∈ Φ.dom, j ∉ X →
            ∀ c ∈ Cs, ¬ (c.lhs = .var j 0 ∧ c.rhs = .var i 0)) ∧
          (∀ i ∈ X,
            SizeOccursFixPol Δ (if π == .pos then .mu else .nu) i π C ∨ ¬ SizeOccursIn i C)) ∧
       (CheckTerm sig Ξ Φ₀ Γ Δ A t Φ Cs T t' →
          ∀ i ∈ X, ∀ j ∈ Φ.dom, j ∉ X →
            ∀ c ∈ Cs, ¬ (c.lhs = .var j 0 ∧ c.rhs = .var i 0)))) ∧
    (∀ (sig : GlobalSig) (Ξ : MutualBlock) (Δ₀ : KindingCtx)
       (Ψ₁ Ψ₂ : SizeCtx) (A A₀ A'' : TypeExpr) (qs qs' : PatSpine)
       (Γ : TermCtx) (Δ : List TyDecl) (t t' : Term)
       (Φ : FlexVars) (Cs : List SizeConstraint) (T : List SizeVar),
      EncodeType .neg .pos Δ₀ A Ψ₁ A₀ →
      SignatureFixpointHygiene (Δ₀.extSizes Ψ₁) A₀ →
      InferSpine (Δ₀.extSizes Ψ₁) qs A₀ A'' Γ Δ Ψ₂ qs' →
      CheckTerm sig Ξ ((Ψ₁ ++ Ψ₂).map (fun d => (d.var, d.pol)))
        Γ ((Δ₀.extSizes Ψ₁).append ⟨Ψ₂, Δ⟩) A'' t Φ Cs T t' →
      ∀ k ∈ Φ.dom, k ∉ (Ψ₁ ++ Ψ₂).dom →
        ∀ j ∈ (Ψ₁ ++ Ψ₂).dom,
          ∀ c ∈ Cs, ¬ (c.lhs = .var k 0 ∧ c.rhs = .var j 0)) := by
  sorry

end NishtAbel2024
Source
Kanstantsin Nisht, 'Type-Based Termination Checking in Agda', Master's Thesis in Computer Science and Engineering, Chalmers University of Technology and University of Gothenburg (supervised by Andreas Abel), 2024; extended abstract by Kanstantsin Nisht and Andreas Abel, 30th International Conference on Types for Proofs and Programs (TYPES 2024). Section 6.3, Theorem 10 (p. 52), Theorem 11 (pp. 54–55), and Theorem 12 (p. 56).
Read-back

What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)

Independent Mathematical Read-Back: Thm_NishtAbel2024_theorems_10_11_and_12.lean

The declaration theorems_10_11_and_12 asserts the conjunction of three universally quantified implications concerning the direction of size constraints generated during subtype comparison (CompareTypes) and bidirectional term inference/checking (InferTerm, CheckTerm).

Underlying data and judgments unfolded across the three conjuncts:

  • Flexible variables (FlexVars) and size constraints (SizeConstraint): A flexible variable context Φ\PhiΦ is an association list of pairs (i,π)∈SizeVar×Polarity(i, \pi) \in \text{SizeVar} \times \text{Polarity}(i,π)∈SizeVar×Polarity with domain dom(Φ)=Φ.map(⋅.1)\text{dom}(\Phi) = \Phi.\text{map}(\cdot.1)dom(Φ)=Φ.map(⋅.1). Lookup Φ.lookupPol(i)\Phi.\text{lookupPol}(i)Φ.lookupPol(i) returns the polarity of the first entry with variable iii. Size-expression polarity lookup Φ.lookupSizePol(π∞,a)\Phi.\text{lookupSizePol}(\pi_\infty, a)Φ.lookupSizePol(π∞​,a) returns some π∞\text{some } \pi_\inftysome π∞​ if a=∞+na = \infty + na=∞+n, returns Φ.lookupPol(i)\Phi.\text{lookupPol}(i)Φ.lookupPol(i) if a=var(i,0)a = \text{var}(i, 0)a=var(i,0) (unshifted singleton variable), and returns none\text{none}none otherwise. A SizeConstraint is a triple (a,R,b)(a, R, b)(a,R,b) (lhs, rel, rhs) with R∈{<,≤}R \in \{<, \le\}R∈{<,≤}. Polarity-directed constraint generation SizeConstraint.ofPol π a b yields [a≤b][a \le b][a≤b] if π=+\pi = +π=+, [b≤a][b \le a][b≤a] if π=−\pi = -π=−, [a≤b,b≤a][a \le b, b \le a][a≤b,b≤a] if π=∘\pi = \circπ=∘, and [][][] if π=⊤\pi = \topπ=⊤. The boolean predicate c.mentions i is true iff i∈vars(c.lhs)∪vars(c.rhs)i \in \text{vars}(c.\text{lhs}) \cup \text{vars}(c.\text{rhs})i∈vars(c.lhs)∪vars(c.rhs).
  • Type comparison (CompareTypes Φ Δ ι π A C Cs): Inductively compares types AAA and CCC at simple kind ι\iotaι and polarity π\piπ in Δ\DeltaΔ:
    • Identical atoms .atom K produce Cs=[]Cs = []Cs=[].
    • Applications (F G)(F\, G)(FG) and (F′ G′)(F'\, G')(F′G′) at ι2\iota_2ι2​ require KindInfer Δ F' (.arr π₁ (ofSKind ι₁) (ofSKind ι₂)), compare F,F′F, F'F,F′ at ι1→π1ι2\iota_1 \xrightarrow{\pi_1} \iota_2ι1​π1​​ι2​ and polarity π\piπ in Δ\DeltaΔ giving C1C_1C1​, compare G,G′G, G'G,G′ at ι1\iota_1ι1​ and polarity π1π\pi_1 \piπ1​π in π1−1Δ\pi_1^{-1}\Deltaπ1−1​Δ giving C2C_2C2​, and return C1++C2C_1 \mathbin{++} C_2C1​++C2​.
    • At arrow kind ι1→π1ι2\iota_1 \xrightarrow{\pi_1} \iota_2ι1​π1​​ι2​, rule lam picks a type variable XXX and compares F.normApp(X)F.\text{normApp}(X)F.normApp(X) and F′.normApp(X)F'.\text{normApp}(X)F′.normApp(X) at ι2\iota_2ι2​ and polarity π\piπ in Δ.extType(X,π1,ofSKind(ι1))\Delta.\text{extType}(X, \pi_1, \text{ofSKind}(\iota_1))Δ.extType(X,π1​,ofSKind(ι1​)).
    • Fixpoints μaS\mu^a SμaS and μbS′\mu^b S'μbS′ (resp. νaR\nu^a RνaR and νbR′\nu^b R'νbR′) at ∗*∗ require Φ.lookupSizePol(+,a)=some π1\Phi.\text{lookupSizePol}(+, a) = \text{some } \pi_1Φ.lookupSizePol(+,a)=some π1​ and Φ.lookupSizePol(+,b)=some π2\Phi.\text{lookupSizePol}(+, b) = \text{some } \pi_2Φ.lookupSizePol(+,b)=some π2​ (resp. using default −-− for ν\nuν), compare branches pairwise at ∗→∘∗* \xrightarrow{\circ} *∗∘​∗ and polarity π\piπ in Δ\DeltaΔ giving CCC, and return SizeConstraint.ofPol(infoMax(π1,π2)π,a,b)++C\text{SizeConstraint.ofPol}(\text{infoMax}(\pi_1, \pi_2)\pi, a, b) \mathbin{++} CSizeConstraint.ofPol(infoMax(π1​,π2​)π,a,b)++C, where infoMax\text{infoMax}infoMax is the join on {∘,+,−,⊤}\{\circ, +, -, \top\}{∘,+,−,⊤} with bottom ∘\circ∘ and top ⊤\top⊤.
  • Bidirectional constraint generation (InferTerm, CheckTerm, CheckClauseInfer, CheckClausesInfer): Takes global signature sig, mutual block Ξ\XiΞ, initial flexible variables Φ0\Phi_0Φ0​, term context Γ\GammaΓ, kinding context Δ\DeltaΔ, and term ttt (plus target type AAA for CheckTerm), producing output flexible variables Φ\PhiΦ, constraint list CsCsCs, tracked size variables TTT, and elaborated term t′t't′ (plus inferred type CCC for InferTerm):
    • Projections r.proj(d,none)r.\text{proj}(d, \text{none})r.proj(d,none) from νaR\nu^a RνaR pick a fresh j∉dom(Φ′)∪dom(Δsizes)j \notin \text{dom}(\Phi') \cup \text{dom}(\Delta_{\text{sizes}})j∈/dom(Φ′)∪dom(Δsizes​), prepend (j,−)(j, -)(j,−) to Φ′\Phi'Φ′, and emit j<aj < aj<a.
    • Constructors cons(c,none,t)\text{cons}(c, \text{none}, t)cons(c,none,t) at μaS\mu^a SμaS pick a fresh j∉dom(Φ)∪dom(Δsizes)j \notin \text{dom}(\Phi) \cup \text{dom}(\Delta_{\text{sizes}})j∈/dom(Φ)∪dom(Δsizes​), check ttt under (j,+)::Φ(j, +) :: \Phi(j,+)::Φ, and emit j<aj < aj<a.
    • Type applications, ascriptions, and existential packs encode their type arguments/annotations via EncodeType .mixed .mixed Δ G Ψ G' with dom(Ψ)\text{dom}(\Psi)dom(Ψ) disjoint from the current flexible variable domain, and prepend Ψ.map(λd⇒(d.var,∘))\Psi.\text{map}(\lambda d \Rightarrow (d.\text{var}, \circ))Ψ.map(λd⇒(d.var,∘)) to the flexible variables.
    • Function calls funRef decl.name [] for decl∈sig++Ξ\text{decl} \in \text{sig} \mathbin{++} \Xidecl∈sig++Ξ pick fresh duplicate-free flexVars of length ∣decl.sizeParams∣|\text{decl.sizeParams}|∣decl.sizeParams∣ with polarities in {+,−,∘}\{+, -, \circ\}{+,−,∘} respecting (μ,−)⇒+(\mu, -) \Rightarrow +(μ,−)⇒+ and (ν,+)⇒−(\nu, +) \Rightarrow -(ν,+)⇒− in decl.ty\text{decl.ty}decl.ty, prepend flexVars to Φ\PhiΦ, and emit no constraints.
    • Subsumption (CheckTerm.sub) infers rrr at AAA giving (Φ′,C1,T,r′)(\Phi', C_1, T, r')(Φ′,C1​,T,r′), requires FlexPolHygiene Φ' Δ A Cty, runs CompareTypes Φ' Δ .star .pos A Cty C₂, and outputs C1++C2C_1 \mathbin{++} C_2C1​++C2​.
    • Clauses Clause.mk qs t run InferSpine Δ qs C C' Γ' Δ' Ψ qs', replace any bound var(a,0)\text{var}(a, 0)var(a,0) in Ψ\PsiΨ with a∈dom(Φ)a \in \text{dom}(\Phi)a∈dom(Φ) by ∞\infty∞ (trivializeCtx Φ Ψ =Ψ′= \Psi'=Ψ′), and check ttt under Ψ′.map(λd⇒(d.var,d.pol))++Φ\Psi'.\text{map}(\lambda d \Rightarrow (d.\text{var}, d.\text{pol})) \mathbin{++} \PhiΨ′.map(λd⇒(d.var,d.pol))++Φ.

The three conjuncts literally state:

  1. Constraint orientation in CompareTypes (Conjunct 1): For all flexible variable contexts Φ\PhiΦ, kinding contexts Δ\DeltaΔ, simple kinds ι\iotaι, polarities π,π′,π′′\pi, \pi', \pi''π,π′,π′′, types A,CA, CA,C, constraint lists CsCsCs, and size variables iii, if:
    • FlexPolHygiene Φ Δ A C holds (meaning for every kkk, if Φ.lookupPol(k)=some π1\Phi.\text{lookupPol}(k) = \text{some } \pi_1Φ.lookupPol(k)=some π1​, any (μ,+)(\mu, +)(μ,+) or (μ,−)(\mu, -)(μ,−) fixpoint occurrence of kkk in AAA or CCC forces π1∈{+,∘}\pi_1 \in \{+, \circ\}π1​∈{+,∘}, and any (ν,+)(\nu, +)(ν,+) or (ν,−)(\nu, -)(ν,−) fixpoint occurrence of kkk in AAA or CCC forces π1∈{−,∘}\pi_1 \in \{-, \circ\}π1​∈{−,∘}),
    • Φ.lookupPol(i)=some π′\Phi.\text{lookupPol}(i) = \text{some } \pi'Φ.lookupPol(i)=some π′, with π′∈{+,−}\pi' \in \{+, -\}π′∈{+,−} and π′′∈{+,−}\pi'' \in \{+, -\}π′′∈{+,−},
    • i∉allSizeVars(A)i \notin \text{allSizeVars}(A)i∈/allSizeVars(A) (¬ SizeOccursIn i A),
    • for every fk∈{μ,ν}\text{fk} \in \{\mu, \nu\}fk∈{μ,ν} and π0\pi_0π0​, SizeOccursFixPol Δ fk i π₀ C implies π0=π′′\pi_0 = \pi''π0​=π′′ and ((fk=μ∧π′=+)∨(fk=ν∧π′=−))((\text{fk} = \mu \land \pi' = +) \lor (\text{fk} = \nu \land \pi' = -))((fk=μ∧π′=+)∨(fk=ν∧π′=−)), and
    • CompareTypes Φ Δ ι π A C Cs holds, then for every constraint c∈Csc \in Csc∈Cs with c.mentions i = true, there exists a size expression aaa such that
c∈SizeConstraint.ofPol(((ππ′)π′′), a, var(i,0)).c \in \text{SizeConstraint.ofPol}(((\pi \pi') \pi''),\, a,\, \text{var}(i, 0)).c∈SizeConstraint.ofPol(((ππ′)π′′),a,var(i,0)).
  1. Absence of flexible-to-rigid constraints and polarity preservation in InferTerm and CheckTerm (Conjunct 2): For all sig, Ξ\XiΞ, polarities π\piπ, size variable lists XXX, flexible variable contexts Φ0,Φ\Phi_0, \PhiΦ0​,Φ, term contexts Γ\GammaΓ, kinding contexts Δ\DeltaΔ, types A,CA, CA,C, terms t,t′t, t't,t′, constraint lists CsCsCs, and size variable lists TTT, suppose RigidVarHypotheses π X Φ₀ Γ Δ A holds — meaning π∈{+,−}\pi \in \{+, -\}π∈{+,−} and, setting fk=μ\text{fk} = \mufk=μ if π=+\pi = +π=+ and fk=ν\text{fk} = \nufk=ν if π=−\pi = -π=−, every i∈Xi \in Xi∈X satisfies:

    • Φ0.lookupPol(i)=some π\Phi_0.\text{lookupPol}(i) = \text{some } \piΦ0​.lookupPol(i)=some π,
    • for all (x,B)∈Γ(x, B) \in \Gamma(x,B)∈Γ, SizeOccursFixPol(Δ,fk,i,π,B)∨i∉allSizeVars(B)\text{SizeOccursFixPol}(\Delta, \text{fk}, i, \pi, B) \lor i \notin \text{allSizeVars}(B)SizeOccursFixPol(Δ,fk,i,π,B)∨i∈/allSizeVars(B), and
    • SizeOccursFixPol(Δ,fk,i,(−)π,A)∨i∉allSizeVars(A)\text{SizeOccursFixPol}(\Delta, \text{fk}, i, (-)\pi, A) \lor i \notin \text{allSizeVars}(A)SizeOccursFixPol(Δ,fk,i,(−)π,A)∨i∈/allSizeVars(A). Then:
    • If InferTerm sig Ξ Φ₀ Γ Δ t C Φ Cs T t' holds, then (a) for all i∈Xi \in Xi∈X, all j∈dom(Φ)j \in \text{dom}(\Phi)j∈dom(Φ) with j∉Xj \notin Xj∈/X, and all c∈Csc \in Csc∈Cs, it is not the case that c.lhs=var(j,0)∧c.rhs=var(i,0)c.\text{lhs} = \text{var}(j, 0) \land c.\text{rhs} = \text{var}(i, 0)c.lhs=var(j,0)∧c.rhs=var(i,0); and (b) for all i∈Xi \in Xi∈X, either SizeOccursFixPol(Δ,fk,i,π,C)\text{SizeOccursFixPol}(\Delta, \text{fk}, i, \pi, C)SizeOccursFixPol(Δ,fk,i,π,C) or i∉allSizeVars(C)i \notin \text{allSizeVars}(C)i∈/allSizeVars(C).
    • If CheckTerm sig Ξ Φ₀ Γ Δ A t Φ Cs T t' holds, then for all i∈Xi \in Xi∈X, all j∈dom(Φ)j \in \text{dom}(\Phi)j∈dom(Φ) with j∉Xj \notin Xj∈/X, and all c∈Csc \in Csc∈Cs, it is not the case that c.lhs=var(j,0)∧c.rhs=var(i,0)c.\text{lhs} = \text{var}(j, 0) \land c.\text{rhs} = \text{var}(i, 0)c.lhs=var(j,0)∧c.rhs=var(i,0).
  2. Absence of flexible-to-rigid constraints across an encoded clause body (Conjunct 3): For all sig, Ξ\XiΞ, Δ0\Delta_0Δ0​, Ψ1,Ψ2\Psi_1, \Psi_2Ψ1​,Ψ2​, A,A0,A′′A, A_0, A''A,A0​,A′′, qs,qs′qs, qs'qs,qs′, Γ\GammaΓ, Δ\DeltaΔ, t,t′t, t't,t′, Φ\PhiΦ, CsCsCs, TTT, if:

    • EncodeType .neg .pos Δ₀ A Ψ₁ A₀,
    • SignatureFixpointHygiene (Δ₀.extSizes Ψ₁) A₀,
    • InferSpine (Δ₀.extSizes Ψ₁) qs A₀ A'' Γ Δ Ψ₂ qs', and
    • CheckTerm sig Ξ ((Ψ₁ ++ Ψ₂).map (fun d => (d.var, d.pol))) Γ ((Δ₀.extSizes Ψ₁).append ⟨Ψ₂, Δ⟩) A'' t Φ Cs T t', then for every k∈dom(Φ)k \in \text{dom}(\Phi)k∈dom(Φ) with k∉dom(Ψ1++Ψ2)k \notin \text{dom}(\Psi_1 \mathbin{++} \Psi_2)k∈/dom(Ψ1​++Ψ2​), every j∈dom(Ψ1++Ψ2)j \in \text{dom}(\Psi_1 \mathbin{++} \Psi_2)j∈dom(Ψ1​++Ψ2​), and every c∈Csc \in Csc∈Cs, it is not the case that c.lhs=var(k,0)∧c.rhs=var(j,0)c.\text{lhs} = \text{var}(k, 0) \land c.\text{rhs} = \text{var}(j, 0)c.lhs=var(k,0)∧c.rhs=var(j,0).

Degenerate cases, vacuous hypotheses, and anomalies:

  • Unreferenced universal variable AAA in the InferTerm half of Conjunct 2: In Conjunct 2, A:TypeExprA : \text{TypeExpr}A:TypeExpr is universally quantified outside the conjunction of the InferTerm and CheckTerm implications and appears in RigidVarHypotheses π X Φ₀ Γ Δ A, even though InferTerm sig Ξ Φ₀ Γ Δ t C Φ Cs T t' does not mention AAA (instantiating A=1A = 1A=1 always satisfies the AAA-condition in RigidVarHypotheses).
  • Exact syntactic inequality in Conjuncts 2 and 3: The conclusion ¬(c.lhs=var(j,0)∧c.rhs=var(i,0))\neg(c.\text{lhs} = \text{var}(j, 0) \land c.\text{rhs} = \text{var}(i, 0))¬(c.lhs=var(j,0)∧c.rhs=var(i,0)) only rules out constraints whose left-hand side is literally the unshifted singleton variable var(j,0)\text{var}(j, 0)var(j,0) and whose right-hand side is literally var(i,0)\text{var}(i, 0)var(i,0); it makes no assertion about shifted variables var(j,n)\text{var}(j, n)var(j,n) with n>0n > 0n>0 or formal minima with non-empty tails.
Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by kmehltretter82 · Nov 1, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me