You're right to push for a more general and robust notion of area. If you want to cover non-rectangular shapes (the objects you observe are not necessarily rectangles), the cleanest way is to switch from a purely coordinate-based formula to a measure-theoretic one. Here’s a concrete, thesis-friendly way to rewrite Definition 0.6 and related bits.
What to change (high-level)
- Replace the rectangle-centric fArea with a genuine area measure μ on T.
- Define fArea as μ restricted to Lebesgue-measurable subsets of T.
- Keep the rectangle special case (bounding boxes) as a convenient instance, but do not require rectangles in general.
- If you still want an explicit rectangle formula, provide it as a special case; for general shapes use μ(T1 ∩ T2) etc.
Proposed rewrite (measurable-set version)
Definition 0.6 (Area Function, generalized)
Let μ be the 2D Lebesgue measure on R^2 restricted to the spatial frame domain T, i.e., μ is the area measure on T. For every Lebesgue-measurable S ⊆ T, define
fArea(S) := μ(S).
In particular:
- fArea(∅) = 0.
- If BBox(xmin, xmax, ymin, ymax) is an axis-aligned bounding box contained in T, then
fArea(BBox) = (xmax − xmin) · (ymax − ymin) (with the understanding that negative widths/heights are treated as 0, i.e., use max(0, ...)).
- fArea(U \ T) = μ(U \ T) (if you keep U as a spatial universe distinct from T; if you set U = T, then fArea(U \ T) = 0).
- fArea(T1 ∩ T2) = μ(T1 ∩ T2) for general spatial terms T1, T2 ⊆ T.
In particular, if T1 and T2 are rectangles, the previous rectangle formula yields the same result.
Remarks you can include in the text
- Generality: This makes fArea applicable to any Lebesgue-measurable shape, not just rectangles.
- Coherence with negation: Since ⟦¬T⟧(D,i,ε) := U \ ⟦T⟧(D,i,ε), the area of a negated region is fArea(U \ T) = μ(U \ T). If you identify U with T, this is μ(T \ T) = μ(∅) = 0, which matches intuition for the complement of a region inside the universe.
- If you want a discrete alternative (for computability in a thesis project), you can add a paragraph: “If a discrete grid is used, fArea(S) can be defined as the number of grid cells intersecting S, i.e., a computable approximation of μ(S).”
Short note on a small typo you likely want to fix
- In the original formula for intersection of axis-aligned rectangles, the standard, correct version is
fArea(T1 ∩ T2) = max(0, min(xmax1, xmax2) − max(xmin1, xmin2)) · max(0, min(ymax1, ymax2) − max(ymin1, ymin2)).
The inner max ensures non-negativity of width/height.
Concrete patch you can paste
- If you want to keep the same numbering and style, you could replace Definition 0.6 with:
Definition 0.6 (Area Function). Let μ be the 2D Lebesgue measure on R^2 restricted to T. For every Lebesgue-measurable S ⊆ T, define
fArea(S) := μ(S).
In particular:
- fArea(∅) = 0
- fArea(BBox(xmin, xmax, ymin, ymax)) = max(0, xmax − xmin) · max(0, ymax − ymin)
- fArea(U \ T) = μ(U \ T)
- fArea(T1 ∩ T2) = μ(T1 ∩ T2)
If T1, T2 are axis-aligned bounding boxes, the usual rectangle formula applies; for general shapes, the area is μ(T1 ∩ T2).
Optional thesis-friendly add-ons
- Add a sentence explicitly linking to measurability: “We restrict to Lebesgue-measurable spatial regions; the logic only reasons about such regions.”
- Include a brief remark about computability: “In practice, we use either (i) polygonal representations and compute μ via standard polygon area formulas, or (ii) a finite-grid discretization to approximate μ.”
- If you want to keep a purely syntactic approach, you can keep the rectangle case as a definitional shortcut but state clearly that the semantics allow any measurable region, with area given by μ.
If you’d like, I can draft a precise LaTeX snippet tailored to your current document style (Section/Definition numbers, formatting, etc.).