@@ -380,7 +380,8 @@ def callNative_checker
380380open LamReif Embedding.Lam in
381381def callMkMVar_checker
382382 (nonempties : Array REntry) (valids : Array REntry) :
383- ReifM (Array (REntry × DTr) × Array (REntry × DTr) × MVarId × Expr × LamTerm × Nat × Array Nat) := do
383+ ReifM (Array (REntry × DTr) × Array (REntry × DTr) × MVarId ×
384+ Expr × LamTerm × Array (FVarId × Expr) × Array Nat) := do
384385 let tyVal ← LamReif.getTyVal
385386 let varVal ← LamReif.getVarVal
386387 let lamEVarTy ← LamReif.getLamEVarTy
@@ -583,7 +584,7 @@ where
583584 let (exportFacts', _) ← LamReif.preprocess exportFacts exportInds
584585 exportFacts := exportFacts'.append (← LamReif.auxLemmas exportFacts)
585586 -- **Query the dummy prover which creates a metavariable**
586- let (nonemptyWithDTrs, validWithDTrs, goalId, proof, proofLamTerm, natoms , etoms) ←
587+ let (nonemptyWithDTrs, validWithDTrs, goalId, proof, proofLamTerm, atoms , etoms) ←
587588 callMkMVar_checker exportInhs exportFacts
588589 LamReif.newAssertion proof (.leaf "by_native::queryNative" ) proofLamTerm
589590 let etomInstantiated ← LamReif.validOfInstantiateForall (.valid [] proofLamTerm) (etoms.map .etom)
@@ -593,7 +594,7 @@ where
593594 Reif.setDeclName? declName?
594595 let checker ← LamReif.buildCheckerExprFor contra
595596 let contra ← Meta.mkAppM ``Embedding.Lam.LamThmValid.getFalse #[checker]
596- let (_, goalId) ← goalId.introN (natoms + etoms.size)
597+ let (_, goalId) ← goalId.introN (atoms.size + etoms.size)
597598 let (goalCtx, goalId) ← goalId.introN (exportInhs.size + exportFacts.size)
598599 let goalCtxWithDeriv := goalCtx.zip ((nonemptyWithDTrs ++ validWithDTrs).map Prod.snd)
599600 return (contra, goalId, goalCtxWithDeriv)
0 commit comments