File size: 2,017 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import OAI.AlgebraicGeometry.Resolution.Blowups.Etale.BoundaryModel

/-! # Extend Unit Labels -/

namespace OAI.AlgebraicGeometry.Resolution.Blowups

noncomputable section

/-! Restore inactive original boundary labels as the actual invertible equations. -/

universe u v

variable {k R : Type u} {ι : Type v} [CommRing k] [CommRing R] [Algebra k R]
  (w : ι → R) (B : Finset ι)

/-- A model for the selected equations extends to the original family
when every omitted equation is invertible. The omitted labels are
retained as unit components, with their actual equations. -/
def Etale.BoundaryModel.Construction.EtaleBoundaryModel.extendUnitLabels
    (M : Etale.BoundaryModel.Construction.EtaleBoundaryModel k R B (fun j => w j.val))
    (hu : ∀ j, j ∉ B → IsUnit (w j)) : Etale.BoundaryModel.Construction.EtaleBoundaryModel k R ι w := by
  classical
  refine
    { indices := M.indices
      finite := M.finite
      decidableEq := M.decidableEq
      map := M.map
      etale := M.etale
      ground := M.ground
      coordinate := fun j => if hj : j ∈ B then M.coordinate ⟨j, hj⟩ else none
      distinct := ?_
      multiplier := fun j => if hj : j ∈ B then M.multiplier ⟨j, hj⟩ else w j
      multiplierUnit := ?_
      equation := ?_ }
  · intro i j s hi hj
    by_cases hbi : i ∈ B
    · by_cases hbj : j ∈ B
      · rw [dite_eq_left hbi] at hi
        rw [dite_eq_left hbj] at hj
        exact congrArg Subtype.val (M.distinct ⟨i, hbi⟩ ⟨j, hbj⟩ s hi hj)
      · rw [dite_eq_right hbj] at hj
        cases hj
    · rw [dite_eq_right hbi] at hi
      cases hi
  · intro j
    by_cases hj : j ∈ B
    · rw [dite_eq_left hj]
      exact M.multiplierUnit ⟨j, hj⟩
    · rw [dite_eq_right hj]
      exact hu j hj
  · intro j
    by_cases hj : j ∈ B
    · rw [dite_eq_left hj, dite_eq_left hj]
      exact M.equation ⟨j, hj⟩
    · rw [dite_eq_right hj, dite_eq_right hj]
      exact (mul_one (w j)).symm

end

end OAI.AlgebraicGeometry.Resolution.Blowups