@@ -16,7 +16,6 @@ def BoundedQuery.mapTermRel {g : ℕ → ℕ} (ft : ∀ n, (fol dbs).Term (α
1616 | _n, .tEq a b => .tEq (ft _ a) (ft _ b)
1717 | _n, .and q1 q2 => .and (q1.mapTermRel ft h) (q2.mapTermRel ft h)
1818 | n, .ex q => (h n (q.mapTermRel ft h)).ex
19- | _n, .or q1 q2 => .or (q1.mapTermRel ft h) (q2.mapTermRel ft h)
2019 | _n, .not q => (q.mapTermRel ft h).not
2120
2221/-- Casts `BoundedQuery dbs m` as `BoundedQuery dbs n`, where `m ≤ n`. -/
@@ -26,7 +25,6 @@ def BoundedQuery.castLE : ∀ {m n : ℕ} (_h : m ≤ n), BoundedQuery dbs m →
2625 | _m, _n, h, .tEq a b => .tEq (a.relabel (Sum.map id (Fin.castLE h))) (b.relabel (Sum.map id (Fin.castLE h)))
2726 | _m, _n, h, .and q₁ q₂ => (q₁.castLE h).and (q₂.castLE h)
2827 | _m, _n, h, .ex q => (q.castLE (add_le_add_right h 1 )).ex
29- | _m, _n, h, .or q₁ q₂ => (q₁.castLE h).or (q₂.castLE h)
3028 | _m, _n, h, .not q => (q.castLE h).not
3129
3230/- Helper theorems for `castLE` and `mapTermRel` -/
@@ -44,7 +42,6 @@ theorem castLE_rfl {n} (h : n ≤ n) (φ : BoundedQuery dbs n) : φ.castLE h =
4442 | tEq _ _ => simp
4543 | and _ _ ih₁ ih₂ => simp [ih₁, ih₂]
4644 | ex _ ih => simp [ih]
47- | or _ _ ih₁ ih₂ => simp [ ih₁, ih₂]
4845 | not _ ih => simp [ih]
4946
5047@[simp]
@@ -102,11 +99,6 @@ theorem BoundedQuery.relabel.ex_def (g : α → α ⊕ (Fin n)) {k} (φ : Bounde
10299 rw [relabel, mapTermRel, relabel]
103100 simp
104101
105- @[simp]
106- theorem BoundedQuery.relabel.or_def (g : α → α ⊕ (Fin n)) {k} (φ ψ : BoundedQuery dbs k) :
107- (or φ ψ).relabel g = or (φ.relabel g) (ψ.relabel g) := by
108- rfl
109-
110102@[simp]
111103theorem BoundedQuery.relabel.not_def (g : α → α ⊕ (Fin n)) {k} (φ : BoundedQuery dbs k) :
112104 (not φ).relabel g = not (φ.relabel g) := by
0 commit comments