Skip to content

Commit 56d350a

Browse files
committed
fix: Model.Natural
1 parent 8d3cce1 commit 56d350a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

HoTTLean/Model/Natural/Interpretation.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ theorem tp_sound {Γ i A l} (H : Lookup Γ i A l) {sΓ} (hΓ : sΓ ∈ I.ofCtx
832832
| zero => exact I.mem_ofType_wk _ hB
833833
| succ _ _ _ ih =>
834834
have ⟨_, _, _, _⟩ := ih hΓ'
835-
exact ⟨‹_›, _, ⟨_, ‹_›, rfl⟩, I.mem_ofType_wk _ ‹_›⟩
835+
exact ⟨‹_›, _, ‹_›, I.mem_ofType_wk _ ‹_›⟩
836836

837837
theorem var_sound {Γ i A l} (H : Lookup Γ i A l) {sΓ} (hΓ : sΓ ∈ I.ofCtx Γ) :
838838
∃ llen, ∃ st ∈ sΓ.var llen i, st ≫ s[l].tp ∈ I.ofType sΓ l A llen := by

HoTTLean/Model/Natural/NaturalModel.lean

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ theorem comp_mk
482482
(by simp [e2]; rw [← Functor.map_comp_assoc, comp_sec]; simp; congr!) := by
483483
apply ext (A := σA) (by simp [← comp_fst, e1, e3]) <;> simp [← comp_fst, ← comp_snd]
484484
rw [← comp_dependent, dependent_mk]
485+
. simp [e1]
485486

486487
theorem eta (ab : y(Γ) ⟶ M.uvPolyTp.compDom N.uvPolyTp)
487488
{A} (eq : fst ab ≫ M.tp = A) :
@@ -1176,7 +1177,8 @@ lemma reflSubst_j : ym(ii.reflSubst a) ≫ j i a C r r_tp = r := by
11761177
· simp
11771178
simp only [← heq_eq_eq, comp_eqToHom_heq_iff]
11781179
rw! [equivFst_lift_eq]
1179-
simp [this]
1180+
. simp [this]
1181+
. simp [IsPullback.of_id_fst]
11801182

11811183
variable (b : y(Γ) ⟶ M.Tm) (b_tp : b ≫ M.tp = a ≫ M.tp)
11821184
(h : y(Γ) ⟶ M.Tm) (h_tp : h ≫ M.tp = ii.isKernelPair.lift b a (by aesop) ≫ ii.Id)

0 commit comments

Comments
 (0)